util.js 226 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 'use strict' function range(from, to) { // TODO: make this inlined. const list = new Array(to - from + 1) for(let i = 0; i < list.length; ++i) { list[i] = from + i } return list } module.exports = { range }