const fruits = [
{id:1, name: 'Banana'},
{id:2, name: 'Apple'},
{id:3, name: 'Kiwi'}
]
// Remove Apple with id '2'
const newFruits = fruits.filter(fruit => fruit.id !== 'Apple')
console.log(newFruits)
// [
// {id:1, name: 'Banana'},
// {id:3, name: 'Kiwi'}
// ]