UNPKG

@extra-array/partition.min

Version:

Segregates values by test result.

14 lines (11 loc) 358 B
declare module "@extra-array/partition.min" { 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}