UNPKG

lazzy.ts

Version:

Fast and lightweight library for lazy operations with iterable objects.

3 lines 345 B
export declare function partition<T, R, N>(iterator: Iterator<T, R, N>, predicate: (value: T, index: number) => boolean): [T[], T[]]; export declare function partitionAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, predicate: (value: T, index: number) => boolean | Promise<boolean>): Promise<[T[], T[]]>; //# sourceMappingURL=partition.d.ts.map