- Preparing search index...
- The search index is not available
itr8
- some<TIn>(filterFn: ((TIn: any) => boolean | Promise<boolean>)): TTransIteratorSyncOrAsync<TIn, boolean>
-
Parameters
-
filterFn: ((TIn: any) => boolean | Promise<boolean>)
-
- (TIn: any): boolean | Promise<boolean>
-
Returns boolean | Promise<boolean>
Return true if at least 1 item returns true on the test function.
Example
The filter function can be asynchronous (in which case the resulting iterator will be asynchronous regardless of the input iterator)!