- Preparing search index...
- The search index is not available
atomic-fns
- findIndex<T>(obj: T[], fn: Iteratee<T, any, any>, start?: number): number
-
Parameters
-
obj: T[]
-
fn: Iteratee<T, any, any>
-
Optional
start: number
Returns number
- findIndex<T>(obj: T[], fn: Object, start?: number): number
-
Parameters
-
obj: T[]
-
fn: Object
-
Optional
start: number
Returns number
- findIndex<T>(obj: T[], fn: PropertyKey, start?: number): number
-
Parameters
-
obj: T[]
-
fn: PropertyKey
-
Optional
start: number
Returns number
This method is like find except that it returns the index of the first element
predicate
returns truthy for instead of the element itself.Returns
The index of the found value, else -1
Example
See