Array Methods Flashcards
1
Q
ForEach
A
Executes callback for each element in array
2
Q
map()
A
Creates and returns a new array based off callback
3
Q
filter()
A
Returns a new array with whatever elements pass the filter criteria set in the callback function
4
Q
includes()
A
Returns true or false if search parameter exists in array
5
Q
find()
A
Returns the first element in array that passes the callback testing function
6
Q
fill()
A
Mutates an array putting a value at a certain index based on a range