Arrays Flashcards
1
Q
What is Array.prototype.filter useful for?
A
to filter out elements in an array
2
Q
What is Array.prototype.map useful for?
A
to transform each element of an array
3
Q
What is Array.prototype.reduce useful for?
A
to combine all elements in an array to get one value