Я понял, что вы хотите удалить определенный элемент из массива.Это верно?
В этом случае вы можете использовать splice
, как в этом примере:
let myArray = [{ a: 'firts', b: 'foo' },
{ a: 'second', b: 'bar' },
{ a: 'third', b: 'baz' }];
// to remove the third item from the array do this:
// first argument is the index of the item to remove
// second argument is the number of items to remove
myArray.splice(2, 1);
console.log(myArray) // [{ a: 'firts', b: 'foo' }, { a: 'second', b: 'bar' }]