JavaScript Array Methods and Properties
JavaScript Array Methods and Properties
Name Description
concat() Joins arrays and returns an array with the joined arrays
constructor Returns the function that created the Array object's prototype
copyWithin() Copies array elements within the array, to and from specified posit
filter() Creates a new array with every element in an array that pass a tes
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
flat() Concatenates sub-array elements
flatMap() Maps all array elements and creates a new flat array
indexOf() Search the array for an element and returns its position
keys() Returns a Array Iteration Object, containing the keys of the origina
lastIndexOf() Search the array for an element, starting at the end, and returns it
map() Creates a new array with the result of calling a function for each ar
pop() Removes the last element of an array, and returns that element
push() Adds new elements to the end of an array, and returns the new len
shift() Removes the first element of an array, and returns that element