@extra-array/search-right
Version:
Finds index of last value passing a test.
12 lines (11 loc) • 369 B
TypeScript
declare module "@extra-array/search-right" {
import type { testFn } from "./_types";
/**
* Finds index of last value passing a test.
* @param x an array
* @param ft test function (v, i, x)
* @returns index of value, -1 if not found
*/
declare function searchRight<T>(x: T[], ft: testFn<T>): number;
export = searchRight;
//# sourceMappingURL=searchRight.d.ts.map}