UNPKG

@types/array.prototype.flatmap

Version:
8 lines (7 loc) 288 B
// This is the same type as the callable signature in `FlatMap` in `index.d.ts`. declare function flatMap<A, B, T extends object | undefined = undefined>( xs: readonly A[], fn: (this: T, x: A, index: number, array: A[]) => readonly B[], thisArg?: T, ): B[]; export = flatMap;