JavaScript Create Array filled with 1…N Link to heading

Array.from(Array(10).keys())
[...Array(10).keys()]
//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]