showing results for - "delete all objects in array of objects with specific attribute"
Juliana
19 Sep 2018
1const arrayOfObjects = [{'objId' : 1, 'name' : 'objectA'}, {'objId': 2, 'name' : 'objectB'}];
2
3// remove object with objId === 1 from the Array arrayOfObjects
4const newArrayOfObjs = arrayOfObjects.filter(obj => obj.objId !== 1);