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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.