how to make an array of a value from 1 to the number

Solutions on MaxInterview for how to make an array of a value from 1 to the number by the best coders in the world

showing results for - "how to make an array of a value from 1 to the number"
Lukas
03 Aug 2016
1[ ...Array(N).keys() ].map( i => i+1);