GITLAB

Nattapon Wongpaet / Hospital

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • hospital
  • node_modules
  • saslprep
  • lib
  • util.js
  • 33ead877   first code Browse Code ยป
    Nattapon Wongpaet
    2018-10-12 18:33:32 +0700  
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
}