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) 240 B
/** * Turn an async iterable to a promise of an array. The promise will resolve * only when the async iterator returns * * @param source an async interable */ export declare function toArray<T>(source: AsyncIterable<T>): Promise<T[]>;