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) 233 B
/** * Runs a mapping function over an asynchronous iterable */ export declare function map<TFrom, TTo>(mapper: (t: TFrom, index: number) => Promise<TTo> | TTo): (source: AsyncIterable<TFrom>) => AsyncGenerator<TTo, void, unknown>;