UNPKG

246 BTypeScriptView Raw
1/**
2 * Flatten nested arrays (max depth is 2) into a non-nested array of non-array items.
3 */
4export declare function flatten<T>(items: T[][]): T[];
5/**
6 * Returns max number from array.
7 */
8export declare function max(items: Array<{}>): number;