Js two arrays, the elements are objects, how to remove the intersection?

A table contains a pile of data, all of which are objects, of course. When I select certain rows, I will add these selected data to a new array, but I do not know the subscript of these data in the original array, when I click the delete button, I should need to delete all the selected data in the original array. I think of for cycle nesting, but this is not a very beautiful way to write.
Thank you for your advice!

Mar.14,2021

Let me give you a reference, not in two arrays.

record with flag bits, deleted ones are not displayed. If you want to submit the data, you can delete it on Filter.

var arr = [
    { name: 'name-1', record_id: 1, is_deleted: 0 },
    { name: 'name-2', record_id: 2, is_deleted: 0 },
    { name: 'name-3', record_id: 3, is_deleted: 1 }
];
var add=[{ name: 'name-3', record_id: 3, is_deleted: 1 }];

function sd(a,b){
    let j=b[0];
    a.forEach((element,index) => {
       if(JSON.stringify(element)==JSON.stringify(j)){
           a.splice(index,1);
       }
    });
    console.log(a)
    return a;
}
sd(arr,add);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf80a4-320b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf80a4-320b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?