MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eiybofb/?context=3
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
1
/** Generates an array with all values from `start` to `end` (not including `end`) */ const range = (start, end) => Array.from({ length: end - start }, (_, i) => start + i);
1
u/every_octopus_ever Mar 20 '19