1.0.0 • Published 7 years ago

quickloop v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

quickloop

Make a range array from an int for those times when you just needa loop over numbers

installation

  $ npm install --save quickloop

or

  $ yarn add quickloop

usage

const range = quickloop(5); // [0, 1, 2, 3, 4]

const offsetRange = quickloop(5, 2); // [2, 3, 4, 5, 6];

capiche?

1.0.0

7 years ago