- findIndex<T>(): Curried2<((val, index?, arr?) => boolean), T[], undefined | number> | Curried2<((val, key?, obj?) => boolean), Record<string, T>, undefined | string>
Returns Curried2<((val, index?, arr?) => boolean), T[], undefined | number> | Curried2<((val, key?, obj?) => boolean), Record<string, T>, undefined | string>
- findIndex<T>(fn): Curried1<T[], undefined | number>
Parameters
- fn: ((val, index?, arr?) => boolean)
- (val, index?, arr?): boolean
Parameters
- val: T
Optional
index: numberOptional
arr: T
Returns boolean
Returns Curried1<T[], undefined | number>
- findIndex<T>(fn): Curried1<Record<string, T>, undefined | string>
Parameters
- fn: ((val, key?, obj?) => boolean)
- (val, key?, obj?): boolean
Parameters
- val: T
Optional
key: stringOptional
obj: Record<string, T>
Returns boolean
Returns Curried1<Record<string, T>, undefined | string>
- findIndex<T>(fn, arr): undefined | number
Parameters
- fn: ((val, index?, arr?) => boolean)
- (val, index?, arr?): boolean
Parameters
- val: T
Optional
index: numberOptional
arr: T
Returns boolean
- arr: T[]
Returns undefined | number
- findIndex<T>(fn, obj): undefined | string
Parameters
- fn: ((val, key?, obj?) => boolean)
- (val, key?, obj?): boolean
Parameters
- val: T
Optional
key: stringOptional
obj: Record<string, T>
Returns boolean
- obj: Record<string, T>
Returns undefined | string
Curried
_findIndex