So I have array with object inside. That object has a property call name that is a string of values
How can I return object that has "apples" in the name properties
fruits = [
{
name: 'apples, lemon',
quantity: 2
},
{
name: 'bananas, pearl',
quantity: 0
},
{
name: 'cherries,
pineapple',
quantity: 5
}
];