Adding Items to and Removing Items from Arrays

There are several methods for adding items to and removing items from Array objects, using the various built-in methods. Table 1.8 shows some of the various methods used in this book. The values in Table 1.8 are shown in a progression as modified by each consecutive statement.

Image

Table 1.8 Array Object Methods Used to Add Elements to and Remove Elements from Arrays

Get Learning AngularJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.