UNPKG

294 BTypeScriptView Raw
1declare function arrayFindIndex<T>(arr: T[], predicate: (element: T, index: number, array: T[]) => boolean): number;
2declare function arrayFindIndex<T, U>(
3 arr: T[],
4 predicate: (this: U, element: T, index: number, array: T[]) => boolean,
5 ctx: U,
6): number;
7export = arrayFindIndex;