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