Files
2018-05-19 02:20:19 +02:00

16 lines
245 B
JavaScript

'use strict'
function range(from, to) {
// TODO: make this inlined.
const list = Array.apply(null, new Array(to - from + 1))
for(let i = 0; i < list.length; ++i) {
list[i] = from + i
}
return list
}
module.exports = {
range
}