Files
yahoo-thing/node_modules/saslprep/lib/util.js
2019-01-25 01:39:48 +01:00

16 lines
226 B
JavaScript

'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
}