Array Flashcards
1
Q
What is Array.prototype.filter useful for?
A
Creating a new array by filtering for elements that meet specified criteria.
2
Q
What is Array.prototype.map useful for?
A
Altering the elements in an array in the same way across the board and returning the result
3
Q
What is Array.prototype.reduce useful for?
A
Combining all values of an array into a single returned value