array.d.ts 246 B

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