array filter Flashcards
1
Q
What is Array.prototype.filter useful for?
A
creates a copy of the array filtered down to elements of given array provided by callback function
2
Q
What is Array.prototype.map useful for?
A
creates a new array populated with results of callback function