UNPKG

react-monaco-editor

Version:
9 lines (8 loc) 246 B
/** * Flatten nested arrays (max depth is 2) into a non-nested array of non-array items. */ export declare function flatten<T>(items: T[][]): T[]; /** * Returns max number from array. */ export declare function max(items: Array<{}>): number;