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) 236 B
/** * Take the last value or the last value to pass predicate from an async iterable */ export declare function last<T>(predicate?: (t: T) => boolean, defaultValue?: T): (source: AsyncIterable<T>) => AsyncGenerator<T, void, unknown>;