JavaScript Methods Flashcards
concat()
Joins two or more arrays, and returns a copy of the joined arrays
copyWithin()
Copies array elements within the array, to and from specified positions
entries()
Returns a key/value pair Array Iteration Object
every()
Checks if every element in an array pass a test
fill()
Fill the elements in an array with a static value
filter()
Creates a new array with every element in an array that pass a test
find()
Returns the value of the first element in an array that pass a test
findIndex()
Returns the index of the first element in an array that pass a test
forEach()
Calls a function for each array element
from()
Creates an array from an object
includes()
Check if an array contains the specified element
indexOf()
Search the array for an element and returns its position
isArray()
Checks whether an object is an array
join()
Joins all elements of an array into a string
keys()
Returns a Array Iteration Object, containing the keys of the original array