delete all objects in array of objects with specific attribute
const arrayOfObjects = [{'objId' : 1, 'name' : 'objectA'}, {'objId': 2, 'name' : 'objectB'}];
// remove object with objId === 1 from the Array arrayOfObjects
const newArrayOfObjs = arrayOfObjects.filter(obj => obj.objId !== 1);