pop key from object javascript code example
Example 1: js delete object in dict
delete myArray[id_to_remove];
Example 2: javascript remove object key
var obj = {a: 5, b: 3};
delete obj["a"];
console.log(obj);
Example 3: javascript remove element from object
delete object.element
Example 4: js remove key from object
var key = "Cow";
delete thisIsObject[key];
delete thisIsObject["Cow"];
delete thisIsObject.Cow;
Example 5: how to delete object property of array javascript
array.forEach(function(v){ delete v.bad });