delete property from array javascript es6 code example
Example 1: js delete object in dict
delete myArray[id_to_remove];
Example 2: how to delete object property of array javascript
array.forEach(function(v){ delete v.bad });
delete myArray[id_to_remove];
array.forEach(function(v){ delete v.bad });