array-filter Flashcards

1
Q

What is Array.prototype.filter useful for?

A

To filter an Array using a callback function as its argument to check if the Array’s elements are true. if so, they are added to a newly created array.

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