number-array-generator
v1.0.1
Published
Provides a function to generate a range of numbers in an array.
Downloads
42
Maintainers
Readme
Number Array Generator
Provides a single function that will build an array of numbers given a start value and an inclusive end value.
Useful for building otherwise tedious lists of values such as minutes or years!
Usage
const numberArrayGenerator = require('number-array-generator');
numberArrayGenerator(5, 10); // [5, 6, 7, 8, 9, 10]
numberArrayGenerator(12, 6); // [12, 11, 10, 9, 8, 7, 6]