UNPKG

axax

Version:

A library of async iterator extensions for JavaScript including ```map```, ```reduce```, ```filter```, ```flatMap```, ```pipe``` and [more](https://github.com/jamiemccrindle/axax/blob/master/docs/API.md#functions).

8 lines (7 loc) 299 B
/** * Filters items from an iterable * * @param source the source iterable to filter * @param predicate the predicate to apply to filter items */ export declare function filter<T>(predicate: (t: T) => Promise<boolean> | boolean): (source: AsyncIterable<T>) => AsyncGenerator<T, void, unknown>;