array-filter Flashcards

1
Q

What is Array.prototype.filter useful for?

A

it is useful to filter the array content based on the search criteria.
to create a new array with the elements that pass the test in the provided function.
filter is useful when you want to find the elements in an array that meet the search criteria.

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