Parameters
- arr: T[]
- predicate: ((value: T, index: number, array: T[]) => boolean)
- (value, index, array): boolean
Parameters
- value: T
- index: number
- array: T[]
Returns boolean
Optional
thisArg: any
Returns Option<number>
The index of the first item that matches the predicate, or None
if no item matches.
Returns the index of the first element in the array that satisfies the provided testing function. Otherwise
None
is returned.