remove keys from object that equal to other object keys es6 code example
Example 1: js delete object in dict
delete myArray[id_to_remove];
Example 2: delete object property vs undefined assignment javascript
a.x = undefined
a.hasOwnProperty("x") // returns true
delete a.x
a.hasOwnProperty("x") // returns false