- some<V>(it, f): Promise<boolean>
Parameters
- it: AsyncIterable<V>
- f: ((v: V) => boolean | Promise<boolean>)
- (v): boolean | Promise<boolean>
Returns boolean | Promise<boolean>
Returns Promise<boolean>
- some<V>(it, f): boolean
Parameters
- it: Iterable<V> | V[]
- f: ((v: V) => boolean)
- (v): boolean
Returns boolean
Returns boolean
Returns true the first time
f
returns true. Useful for spotting any occurrence of data, and exiting quicklyParam: it
Iterable
Param: f
Filter function
Returns