// Type definitions for array-find-index 1.0 // Project: https://github.com/sindresorhus/array-find-index // Definitions by: Sam Verschueren // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function arrayFindIndex(arr: T[], predicate: (element: T, index: number, array: T[]) => boolean): number; declare function arrayFindIndex(arr: T[], predicate: (this: U, element: T, index: number, array: T[]) => boolean, ctx: U): number; export = arrayFindIndex;