Range.js
- create file index.js
- run npm init
- run npm i range-js-caw
- const Range = require('range-js-caw')
let r1 = new Range('0..14');
a.each((i) => console.log(i)) or a.each(function(i) {console.log(i)}) // prints 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
console.log(a.includes(-5)); // false
console.log(a.equals('0..14')); // true
console.log(a.max); // 14
console.log(a.min); // 0
console.log(a.toArray()); // [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]