1.0.2 • Published 7 years ago
array-from-range v1.0.2
Array.fromRange
This module adds fromRange method to Array.prototype.
Use this module if you are not concerned about modifying Array.prototype.
Install
npm install array-from-range
How to use
require('array-from-range');
let range = Array.fromRange(5, 10);
console.log(range); // [ 5, 6, 7, 8, 9, 10 ]