UNPKG

@extra-array/scan-while

Version:

Scans from left, while a test passes.

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