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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Array.prototype.map useful for?

A

creates a new array populated with results of callback function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly