Your IP : 216.73.216.52


Current Path : /proc/thread-self/root/home/deltalab/PMS/logistic-backend/node_modules/saslprep/lib/
Upload File :
Current File : //proc/thread-self/root/home/deltalab/PMS/logistic-backend/node_modules/saslprep/lib/util.js

'use strict';

/**
 * Create an array of numbers.
 * @param {number} from
 * @param {number} to
 * @returns {number[]}
 */
function range(from, to) {
  // TODO: make this inlined.
  const list = new Array(to - from + 1);

  for (let i = 0; i < list.length; i += 1) {
    list[i] = from + i;
  }
  return list;
}

module.exports = {
  range,
};