I\'m looking for any alternatives to the below for creating a JavaScript array containing 1 through to N where N is only known at runt
1
N
Array(8).fill(0).map(Number.call, Number)
Stealing Igors Number.call trick but using fill() to shorten slightly. Only works with ES6 and above.
Number.call
fill()