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).

5 lines (4 loc) 177 B
/** * Take the first x values from an async iterable */ export declare function take<T>(numberToTake: number): (source: AsyncIterable<T>) => AsyncGenerator<T, void, unknown>;