showing results for - "javascript populate list from 1 to n"
Viktoria
28 Feb 2017
1[...Array(10).keys()]
2//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
3
Garance
27 Jul 2016
1Array.from(Array(10).keys())
2//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
3