The filter() method returns all objects matching a condition, not just the first. You get a new array containing only matches.
const products = [
{ name: "A", price: 10 },
{ name: "B", price: 50 },
{ name: "C", price: 25 }
];
const cheap = products.filter(p => p.price < 30);
// [{ name: "A", price: 10 }, { name: "C", price: 25 }]