MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eiw4bsd/?context=3
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
7
Array.from({length: 5}, (v, i) => i); := [0, 1, 2, 3, 4]
Array.from({length: 5}, (v, i) => i);
[0, 1, 2, 3, 4]
13 u/Darren1337 Mar 19 '19 I'm about to end this man's whole career.[...Array(5).keys()]
13
I'm about to end this man's whole career.
[...Array(5).keys()]
7
u/action_jackosn Mar 19 '19
Array.from({length: 5}, (v, i) => i);:=[0, 1, 2, 3, 4]