- Preparing search index...
- The search index is not available
@jsq/seq
- find<T>(predicate: ((arg: T) => boolean), iterable: Iterable<T> | AsyncIterable<T>): Promise<T>
-
Parameters
-
predicate: ((arg: T) => boolean)
-
- (arg: T): boolean
-
Returns boolean
-
iterable: Iterable<T> | AsyncIterable<T>
Returns Promise<T>
Locates the first value yielded by the supplied iterable that satisfies the supplied predicate.