Methods at a Glance
JavaScript array methods fall into two main categories: Mutating (change the original array) and Non-Mutating (return a new array or value, leaving the original unchanged). Knowing which is which helps you write safer, more predictable code.
Mutating Methods
These methods change the original array:
push
pop
shift
unshift
splice
sort
reverse
Non-Mutating Methods
These methods return a new array or value:
map
filter
slice
reduce
find
findIndex
includes
some
every
join
forEach
flat
toSorted
toReversed
toSpliced
No methods found.
Try adjusting your search or filter.