function range

export declare function range(range: RangeOptions | number): Generator<number, void, unknown>;

A generator to yield numbers in a given range

Parameters

range: RangeOptions | number
A number representing the the range to yield (exclusive) or an object with start, end and step