- Preparing search index...
- The search index is not available
Tuff
- find<T>(array: T[], callback: ((value: T, index: number, array: T[]) => boolean)): T | null
-
Parameters
-
array: T[]
-
callback: ((value: T, index: number, array: T[]) => boolean)
-
- (value: T, index: number, array: T[]): boolean
-
Parameters
-
value: T
-
index: number
-
array: T[]
Returns boolean
Returns T | null
Find the first element of an array that satisfies the callback.
Returns
the first element satisfying the callback, or null