Range
rangeTo(0,10,3)
.forEach(it => console.log(`Index: ${it}`));
// Output:
// Index: 0
// Index: 3
// Index: 6
// Index: 9Functions
rangeTo
const numericRange = rangeTo(1, 5, 2);
console.log(numericRange); // Output: [1, 3, 5]rangeUntil
const numericRange = rangeUntil(1, 5, 2);
console.log(numericRange); // Output: [1, 3]inRange
Last updated