List of Array Methods
Array
concat()
Method
Returns a merged array consisting of the array on which it is called upon and the array(s) provided as its arguments in order.
Array
filter()
Method
Returns a new array consisting of all the elements that meet the condition set in its callback function.
Array
map()
Method
Returns a newly created array with the results of invoking the callback function on each element of the array.
Array
forEach()
Method
Executes a callback function for each element in an array.
Array
join()
Method
Joins all elements of an array and converts into a single string.
Array
push()
Method
Appends one or more elements to the end of an array.
Array
pop()
Method
Removes the last element of an array.
Array
shift()
Method
Removes and returns the first element of an array and shifts the indexes of the remaining elements one lower.
Array
unshift()
Method
Adds one or more elements to the beginning of an array and returns the length of the new array.
Array
splice()
Method
Adds/removes elements to/from an array.
Array
slice()
Method
Returns the selected elements in an array as a new array.
Array
reduce()
Method
Reduces the elements of an array to a single value.