// Short form example const pizzas = [ { name: 'Margarita', toppings: ['Cheese', 'Tomato'] }, { name: 'Hawaiian', toppings: ['Cheese', 'Tomato', 'Ham', 'Pineapple'] }, { name: 'Ham and Mushroom', toppings: ['Cheese', 'Tomato', 'Ham', 'Mushroom'] }, { name: 'Pepperoni', toppings: ['Cheese', 'Tomato', 'Pepperoni'] }, { name: 'Vegetable', toppings: ['Cheese', 'Tomato', 'Peppers', 'Mushroom'] }, ] const meats = ['Ham', 'Pepperoni'] // Set 'vegetarian' to 'true' on pizzas that don't contain meats (and 'false' if they do) pizzas.map(pizza => pizza.vegetarian = !meats.some(meat => pizza.toppings.includes(meat)) ) // Filter by pizzas where vegetarian is true, and return just the names console.log('Vegetarian Pizzas:', pizzas.filter(pizza => pizza.vegetarian).map(pizza => pizza.name))