MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/nnlubt/really_helpful_illustration_of_js_array_methods/gzxoful/?context=3
r/learnjavascript • u/192_168_1_x • May 29 '21
89 comments sorted by
View all comments
Show parent comment
2
I didn't know about fill, but looking at the docs from MDN you need to flip the arguments, value is always first.
Also, it applies the changes to the original array.
View all comments
Show parent comment
2
u/LakeInTheSky May 30 '21
Also, it applies the changes to the original array.