Array Flashcards
Array.concat()
Joins two or more arrays, and returns a copy of the joined arrays.
Array.every()
Tests whether some condition holds for all elements of an array.
Array.filter()
Returns array elements that pass a predicate.
Array.forEach()
Invoke a function for each array element.
Array.indexOf()
Search the array for an element and returns its position.
Array.join()
Joins all elements of an array into a string.
Array.lastIndexOf()
Search the array for an element, starting at the end, and returns its position.
Array.length
Sets or returns the number of elements in an array.
Array.map()
Returns a new array with elements computed by a function.
Array.pop()
Removes the last element of an array, and returns that element.
Array.push()
Adds new elements to the end of an array, and returns the new length.
Array.reduce()
Returns a reduced value of the array as computed by a function being applied to all elements from left-to-right.
Array.reduceRight()
Returns a reduced value of the array as computed by a function being applied to all elements from right-to-left.
Array.reverse()
Reverses the order of the elements in an array.
Array.shift()
Removes the first element of an array, and returns that element.
Array.slice()
Selects a part of an array, and returns the new array.
Array.some()
Test whether a predicate is true for any element.