Skip to content

Commit

Permalink
feat: add rudimentary Array.flat
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmrts authored Dec 17, 2019
1 parent 603a727 commit 296eeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ declare class $ReadOnlyArray<+T> {
lastIndexOf(searchElement: mixed, fromIndex?: number): number;
map<U>(callbackfn: (value: T, index: number, array: $ReadOnlyArray<T>) => U, thisArg?: any): Array<U>;
flatMap<U>(callbackfn: (value: T, index: number, array: $ReadOnlyArray<T>) => $ReadOnlyArray<U> | U, thisArg?: any): Array<U>;

flat(depth?: number): Array<mixed>;
reduce(
callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: $ReadOnlyArray<T>) => T,
): T;
Expand Down

0 comments on commit 296eeb0

Please sign in to comment.