generate range of numbers in es6

Developer from somewhere

Problem: want to generate an array containing all values up to a number.

Solution:

  • Found here
  • […Array(n).keys()]