DEV Community

Discussion on: 10 Array Methods You Should Know 👀

Collapse
 
karataev profile image
Eugene Karataev

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.
splice