array Flashcards
Joins two or more arrays, and returns a copy of the joined arrays
concat()
Copies array elements within the array, to and from specified positions
copyWithin()
Returns a key/value pair Array Iteration Object
entries()
Checks if every element in an array pass a test
every()
Fill the elements in an array with a static value
fill()
Creates a new array with every element in an array that pass a test
filter()
Returns the value of the first element in an array that pass a test
find()
Returns the index of the first element in an array that pass a test
findIndex()
Calls a function for each array element
forEach()
Creates an array from an object
from()
Check if an array contains the specified element
includes()
Search the array for an element and returns its position
indexOf()
Checks whether an object is an array
isArray()
Joins all elements of an array into a string
join()
Returns a Array Iteration Object, containing the keys of the original array
keys()
Search the array for an element, starting at the end, and returns its position
lastIndexOf()
Creates a new array with the result of calling a function for each array element
map()
Removes the last element of an array, and returns that element
pop()
mutable
Adds new elements to the end of an array, and returns the new length
push()
mutable
Reduce the values of an array to a single value (going left-to-right)
reduce()
Reduce the values of an array to a single value (going right-to-left)
reduceRight()
Reverses the order of the elements in an array
reverse()
will mutate the array
Removes the first element of an array, and returns that element
shift()
mutable
Selects a part of an array, and returns the new array
slice()
Checks if any of the elements in an array pass a test
some()
Sorts the elements of an array
sort()
mutable
Adds/Removes elements from an array
splice()
mutable
Converts an array to a string, and returns the result
toString()
Adds new elements to the beginning of an array, and returns the new length
unshift()
mutable
Returns the primitive value of an array
valueOf()