I have the following two arrays:
SimpleArray = [2,3];
ObjectArray = [{
id: 1,
name: 'charles'
},{
id: 2,
name: 'john'
},{
id: 3,
name: 'allen'
},{
id: 4,
name: 'jack'
}];
I want to remove objects present in ObjectArray
that have id's equal to the values present in SimpleArray
.