- find<T>(condition: ((x: T) => boolean)): ((arr: readonly T[]) => undefined | T)
-
Parameters
-
condition: ((x: T) => boolean)
-
- (x: T): boolean
-
Returns boolean
Returns ((arr: readonly T[]) => undefined | T)
-
- (arr: readonly T[]): undefined | T
-
Returns undefined | T
Remarks
Returns
undefined
if no element satisfiescondition
.Example