mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
524 B
TypeScript
9 lines
524 B
TypeScript
// Type definitions for array-find-index 1.0
|
|
// Project: https://github.com/sindresorhus/array-find-index
|
|
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function arrayFindIndex<T>(arr: T[], predicate: (element: T, index: number, array: T[]) => boolean): number;
|
|
declare function arrayFindIndex<T, U>(arr: T[], predicate: (this: U, element: T, index: number, array: T[]) => boolean, ctx: U): number;
|
|
export = arrayFindIndex;
|