UNPKG

@extra-array/find-index

Version:

Finds index of leftmost value passing a test.

10 lines 330 B
import type { testFn } from './_types'; /** * Finds index of leftmost 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 findIndex<T>(x: Iterable<T>, ft: testFn<T>): number; export default findIndex; //# sourceMappingURL=index.d.ts.map