I am new to javascript and I am trying to remove multiple values from an array of objects.
Right now I can remove one object like this
if(obj.findObjectByKey(response, 'cat_id', 171) == true) {
var catId = response.map(item => item.cat_id).indexOf(171);
}
In the code above I will remove the item with a id of "171" but now I have an array with multiple values that I would like to remove.
So how can I modify the code above to let me pass in an array of items that I want to remove from the list eg ['171', '172', '173, '174'];