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

9 lines (8 loc) 400 B
/** * Creates an iterable of numbers (positive and/or negative) * progressing from start up to, but not including, end. A step * of -1 is used if a negative start is specified without an end * or step. If end is not specified, it's set to start with start * then set to 0. */ export declare function range(startOrEnd: number, end: number, step?: number): AsyncGenerator<number, void, unknown>;