hwo to create an array filled with sequencial numbers

Solutions on MaxInterview for hwo to create an array filled with sequencial numbers by the best coders in the world

showing results for - "hwo to create an array filled with sequencial numbers"
María Paula
25 Feb 2019
1[...Array(10).keys()]
2//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
3
Linus
01 Feb 2020
1Array.from(Array(10).keys())
2//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
3