What is the purpose of the filter() method in JavaScript arrays?
filter()
Removes elements from an array.
Returns a new array with elements that pass a test.
Adds new elements to an array.
Applies a function to each element of the array.