Creates an iterable that yields integers in order in the provided range.
An iterable of integers in the specified range.
for (const n of range([0, 100])) { console.log(n); // Logs integers from 0 to 100 (inclusive)}
A range [from, to] specifying the range of integers to generate.
Generated using TypeDoc
Creates an iterable that yields integers in order in the provided range.
Returns
An iterable of integers in the specified range.
Example