Tag view

#methods

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with methods

1 card

JavaScript Medium Theory

slice vs splice, map, filter, reduce, forEach, find, some, every, includes, sort, reverse, and array destructuring

Modern array work relies on iteration helpers, search helpers, and knowing which methods mutate the original array.

  • `slice` copies, `splice` mutates
  • `map` transforms and `forEach` does not return a new array
  • `sort` mutates unless you copy first

slice vs splice, map, filter, reduce, forEach, find, some, every, includes, sort, reverse, and array destructuring