The Basics 🕺
So what are arrays? 🤔
ar·ray
/əˈrā/
noun
1. an ordered series or arrangement.
In computer science, an array data structure, or s...
For further actions, you may consider blocking this person and/or reporting abuse
always have to open docs for slice and splice :)
For me
slice
is nice and handy method to take a part of an array without mutating the original.splice
on the other hand is like a monster, because it mutates the original array.Haha, soo true.
I'm so thankful for
.map
now. We used to have to do for loops manually and push to a new array!excellent post! thanks for sharing!
Hey Nice article, But can you check shift() and unshift() once again ASAP.
And map example too "numberOfWins".
Thanks so much for pointing those out! I appreciate your feedback.
Great post! I would love to read a part 2.
Thank you 🥺
Nice and informative. Thanks for sharing ♥️
Simple and efficace post thanks !! :)
A complementary resource is doesitmutate.xyz/. It'll tell you if an array method mutates the value or copies it.
"(Reduce) method takes two parameters, the accumulator and the current value" That's pretty reductive (no pun intended), since it takes four.