delete an object from an array of objects by attribute code example
Example 1: how to delete object property of array javascript
array.forEach(function(v){ delete v.bad });
Example 2: remove object from array javascript
someArray.splice(x, 1);
array.forEach(function(v){ delete v.bad });
someArray.splice(x, 1);