DEV Community

Discussion on: πŸ¦Έβ€β™‚οΈ 11 JavaScript Tips and Tricks to Code Like A Superhero (Vol.2)

Collapse
 
orkhanjafarovr profile image
Orkhan Jafarov

You're right! This way is slightly shorter! I'll replace mine with them
Thank you mate!

Collapse
 
ogheneovo12 profile image
ogheneovo12

Here is what I use

[...Array(1000).keys()]
Enter fullscreen mode Exit fullscreen mode