const fruits = [
{'type': 'apple', 'color': 'red', 'quantity': 10},
{'type': 'banana', 'color': 'yellow', 'quantity': 9},
{'type': 'orange', 'color': 'orange', 'quantity': 3}
];
console.log(fruits.find(fruit => fruit.type === 'apple' || fruit.type === 'banana' || fruit.type === 'orange') !== undefined)
, если вам нужно проверить, все ли фрукты, яблоки, бананы и апельсины присутствуют
const fruits = [
{'type': 'apple', 'color': 'red', 'quantity': 10},
{'type': 'banana', 'color': 'yellow', 'quantity': 9},
{'type': 'orange', 'color': 'orange', 'quantity': 3}
];
const map = {
'apple': 0,
'banana': 0,
'orange': 0
}
console.log(fruits.reduce((sum, fruit) => sum + (map[fruit.type] === 0 ? ++map[fruit.type] : 0), 0) === 3)