UNPKG

@extra-array/scan-until-right

Version:

Scans from right, until a test passes.

12 lines (11 loc) 385 B
declare module "@extra-array/scan-until-right" { import type { testFn } from "./_types"; /** * Scans from right, until a test passes. * @param x an array * @param ft test function (v, i, x) * @returns first index where test fails till end */ declare function scanUntilRight<T>(x: T[], ft: testFn<T>): number; export = scanUntilRight; //# sourceMappingURL=scanUntilRight.d.ts.map}