UNPKG

quxt

Version:

Lodash but OVERPOWERED!

17 lines (16 loc) 297 B
function range(start, end, step) { let list = [] if (!step) step = 1 if (start > end) { step *= -1 for (i = start; i > end; i += step) { list.push(i) } } else { for (i = start; i < end; i += step) { list.push(i) } } return list } module.exports = range