UNPKG

@extra-array/filter

Version:

Keeps values which pass a test.

11 lines (10 loc) 291 B
declare module "@extra-array/filter" { import type { testFn } from "./_types"; /** * Keeps values which pass a test. * @param x an array * @param ft test function (v, i, x) */ declare function filter<T>(x: T[], ft: testFn<T>): T[]; export = filter; //# sourceMappingURL=filter.d.ts.map}