JavaScript Array Methods - Mutator Methods

Whenever an array is created, we have access to some native methods we can use to with the array. There are currently over 30 of these methods. In this video, which is the first part in this series, I go over the "mutator methods", which are methods that will modify the original array when used. These are -

  • Array.prototype.pop()
  • Array.prototype.shift()
  • Array.prototype.push()
  • Array.prototype.unshift()
  • Array.prototype.reverse()
  • Array.prototype.sort()
  • Array.prototype.splice()
  • Array.prototype.fill()
  • Array.prototype.copyWithin()


You can get the files I worked with in this video in my repository.

blog comments powered by Disqus