array-filter Flashcards

1
Q

What is Array.prototype.filter useful for?

A

Creating a shallow copy of a portion of a given array, filtered down to just the elements that pass the test implemented by the provided function

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