1 | # Installation
|
2 | > `npm install --save @types/array-find-index`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for array-find-index (https://github.com/sindresorhus/array-find-index).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-find-index.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-find-index/index.d.ts)
|
10 | ````ts
|
11 | declare function arrayFindIndex<T>(arr: T[], predicate: (element: T, index: number, array: T[]) => boolean): number;
|
12 | declare function arrayFindIndex<T, U>(
|
13 | arr: T[],
|
14 | predicate: (this: U, element: T, index: number, array: T[]) => boolean,
|
15 | ctx: U,
|
16 | ): number;
|
17 | export = arrayFindIndex;
|
18 |
|
19 | ````
|
20 |
|
21 | ### Additional Details
|
22 | * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
|
23 | * Dependencies: none
|
24 |
|
25 | # Credits
|
26 | These definitions were written by [Sam Verschueren](https://github.com/samverschueren).
|
27 |
|
\ | No newline at end of file |