1 | /**
|
2 | * Partitions an array given a predicate. All elements satisfying the predicate
|
3 | * are part of the first returned array, and all elements that don't are in the
|
4 | * second.
|
5 | */
|
6 | declare function partitionArray<Tv>(
|
7 | array: Tv[],
|
8 | predicate: (value: Tv, index: number, array: Tv[]) => boolean,
|
9 | context?: any,
|
10 | ): [Tv[], Tv[]];
|
11 |
|
12 | declare namespace partitionArray {}
|
13 |
|
14 | export = partitionArray;
|