UNPKG

@extra-array/partition

Version:

Segregates values by test result.

12 lines (11 loc) 352 B
declare module "@extra-array/partition" { import type { testFn } from "./_types"; /** * Segregates values by test result. * @param x an array * @param ft test function (v, i, x) * @returns [satisfies, doesnt] */ declare function partition<T>(x: Iterable<T>, ft: testFn<T>): [T[], T[]]; export = partition; //# sourceMappingURL=partition.d.ts.map}