@types/array-find-index
Version:
TypeScript definitions for array-find-index
33 lines (26 loc) • 1.21 kB
Markdown
# Installation
> `npm install --save @types/array-find-index`
# Summary
This package contains type definitions for array-find-index (https://github.com/sindresorhus/array-find-index).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-find-index.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-find-index/index.d.ts)
````ts
// 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;
````
### Additional Details
* Last updated: Fri, 22 Sep 2023 18:11:04 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [Sam Verschueren](https://github.com/samverschueren).