UNPKG

@types/fbjs

Version:
15 lines (12 loc) 399 B
/** * Partitions an array given a predicate. All elements satisfying the predicate * are part of the first returned array, and all elements that don't are in the * second. */ declare function partitionArray<Tv>( array: Tv[], predicate: (value: Tv, index: number, array: Tv[]) => boolean, context?: any, ): [Tv[], Tv[]]; declare namespace partitionArray {} export = partitionArray;