@types/fbjs
Version:
TypeScript definitions for fbjs
10 lines (7 loc) • 301 B
TypeScript
/**
* Applies a function to every item in an array and concatenates the resulting
* arrays into a single flat array.
*/
declare function flatMapArray<TValue, TNext>(array: TValue[], fn: (value: TValue, index: number) => TNext[]): TNext[];
declare namespace flatMapArray {}
export = flatMapArray;