DEV Community

Discussion on: 10 Array Methods You Should Know ๐Ÿ‘€

Collapse
madza profile image
Madza

always have to open docs for slice and splice :)

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

Collapse
nick profile image
Nick Rameau

Haha, soo true.