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.
c1120 > array-filter > Flashcards
What is Array.prototype.filter useful for?
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.