UNPKG

@extra-array/find

Version:

Finds first value passing a test.

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