Create a range on object.
npm test
npm run build
const r = range(2, 10);
console.log([...r]) // [2, 3, 4, 5, 6, 7, 8, 9]
const r = range(2, 10, 2);
console.log([...r]) // [2, 4, 6, 8]
const r = range(-2, 6, 2);
console.log([...r]) // [-2, 0, 2, 4]