UNPKG

@extra-array/scan-while-right

Version:

Scans from right, while a test passes.

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