just-range
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

just-range

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

npm install just-range
yarn add just-range

Generate a range array for numbers

import range from 'just-range';

range(1, 5); // [1, 2, 3, 4]
range(5); // [0, 1, 2, 3, 4]
range(-5); // [0, -1, -2, -3, -4]
range(0, 20, 5) // [0, 5, 10, 15]

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i just-range

      Weekly Downloads

      7,612

      Version

      4.2.0

      License

      MIT

      Unpacked Size

      5.15 kB

      Total Files

      9

      Last publish

      Collaborators

      • angus-c