@extra-array/search-all
Version:
Finds indices of values passing a test.
11 lines (10 loc) • 325 B
TypeScript
declare module "@extra-array/search-all" {
import type { testFn } from "./_types";
/**
* Finds indices of values passing a test.
* @param x an array
* @param ft test function (v, i, x)
*/
declare function searchAll<T>(x: Iterable<T>, ft: testFn<T>): number[];
export = searchAll;
//# sourceMappingURL=searchAll.d.ts.map}