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

11 lines (10 loc) 286 B
/** * Lookahead into the async iteratable * * @param source The source iterable to look into * @param howFar How far to look ahead */ export declare function lookahead<T>(howFar: number): (source: AsyncIterable<T>) => Promise<{ values: T[]; iterable: AsyncIterable<T>; }>;