What is the use of the filter() method in JavaScript?

What is the use of the filter() method in JavaScript?

More to explore

Based on this image's title: “What is the use of the filter() method in JavaScript?