array methods Flashcards
What statement could you use to triggers this result?
Joins two or more arrays, and returns a copy of the joined arrays
concat()
What statement could you use to triggers this result?
Copies array elements within the array, to and from specified positions
copyWithin()
What statement could you use to triggers this result?
Checks if every element in an array pass a test
every()
What statement could you use to triggers this result?
fill()
What statement could you use to triggers this result?
Creates a new array with every element in an array that pass a test
filter()
What statement could you use to triggers this result?
Returns the value of the first element in an array that pass a test
find()
What statement could you use to triggers this result?
Returns the index of the first element in an array that pass a test
findIndex()
What statement could you use to triggers this result?
Calls a function for each array element
forEach()
What statement could you use to triggers this result?
Search the array for an element and returns its position
indexOf()
What statement could you use to triggers this result?
Checks whether an object is an array
isArray()
What statement could you use to triggers this result?
Joins all elements of an array into a string
join()
What statement could you use to triggers this result?
Search the array for an element, starting at the end, and returns its position
lastIndexOf()
What statement could you use to triggers this result?
Creates a new array with the result of calling a function for each array element
map()
What statement could you use to triggers this result?
Removes the last element of an array, and returns that element
pop()
What statement could you use to triggers this result?
Adds new elements to the end of an array, and returns the new length
push()