📅  最后修改于: 2022-03-11 15:01:57.406000             🧑  作者: Mango
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);