- filter<V>(it, f): AsyncGenerator<Awaited<V>, void, unknown>
Parameters
- it: AsyncIterable<V>
- f: ((v: V) => boolean | Promise<boolean>)
- (v): boolean | Promise<boolean>
Returns boolean | Promise<boolean>
Returns AsyncGenerator<Awaited<V>, void, unknown>
Filters an iterable, only yielding items which match
f
.