npm.io
1.0.11 • Published 7 years ago

rangely

Licence
MIT
Version
1.0.11
Deps
1
Size
9 kB
Vulns
0
Weekly
0

rangely

Yet another range iterator similar to python's range() built-in. There are a million other libraries like it but this one is mine.

Full Docs: https://nathansmb.github.io/rangely/

Installation:

$ yarn add rangely

or

$ npm install rangely

Example Usage:

import { range } from "rangely";

for (const index of range(1, 10)) {
    console.log(index);
}

// Prints 1, 2, 3, 4, 5, 6, 7, 8, 9