js remove key from object by value code example
Example 1: Delete Properties from a JavaScript Object
var ourDog = {
"name": "Camper",
"legs": 4,
"tails": 1,
"friends": ["everything!"],
"bark": "bow-wow"
};
delete ourDog.bark;
Example 2: javascript remove object key
var obj = {a: 5, b: 3};
delete obj["a"];
console.log(obj); // {b: 3}