Options
All
  • Public
  • Public/Protected
  • All
Menu

rangely

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

Generated using TypeDoc