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