function range_(start, end) {
  let arr = [start];
  let i = start;
  while (i < end) {
    arr.push(i += 1);
  }
  return arr;
}
Creates and fills an array with numbers in the range [start, end].

@param {number} start - First value in the range, inclusive
@param {number} end - Last value in the range, inclusive
@return {number[]} Array of values representing the range