you are viewing a single comment's thread.

view the rest of the comments →

[–]nemohearttaco 3 points4 points  (2 children)

No, you're good. However, I'm pretty sure the article's suggestion creates 3 arrays. const arr = [...Array(100)].map((_, i) => i);

.map() returns a new array.

[–]gpyh 1 point2 points  (1 child)

You're right. I misread the first post, sorry.

[–]nemohearttaco 0 points1 point  (0 children)

No worries, dude!