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(...Array(9)).map((_, i) => i); console.log(Array(...Array(9)).map((_, i) => i))