I am currently working with two arrays structured as follows:
this.originalArray = [{
id: 10,
name: 'a',
roleInfo: [{
roleID: 5,
roleName: 'USER'
}]
},
{
id: 20,
name: 'b',
roleInfo: [{
roleID: 5,
roleName: 'Admin',
}]
},
{
id: 30,
name: 'c',
roleInfo: [{
roleID: 5,
roleName: 'Support',
}]
}]
this.removeElements =
roleInfo: [{
roleID: 5,
roleName: 'Support',
}]
Query: How can the originalArray be filtered to exclude elements present in the removeElements array?