- indexOf<T>(iterable: Iterable<T>, searchElement: T, predicate?: ((a: T, b: T) => boolean)): number
-
Parameters
-
iterable: Iterable<T>
-
searchElement: T
-
predicate: ((a: T, b: T) => boolean) = strictEqual
-
- (a: T, b: T): boolean
-
Returns boolean
Returns number