Array Mutator Methods in Javascript
Today we're going to take a look at some of the Mutator Array methods in JS. Mutator methods are those that modifies the array instead of returning a new representation.
These are the methods we'll cover in this codecast:
- pop
- push
- shift
- unshift
- reverse
- sort
- splice
Apart from these, we'll also learn about 2 extra methods:
- Array.isArray()
- forEach
We'll also learn about how to use the delete keyword to remove an element from an array.
Related:
Warning: Invalid argument supplied for foreach() in /var/www/cssdeck.com/app/modules/labs/views/_details.php on line 68