2👍
✅
Try this:
newArray = myArray.filter(function( obj ) {
return obj.id !== 'idToDelete';
});
option.votes = newArray
Source:stackexchange.com