How to remove a property from a JavaScript object?
Given an object:
let myObject = {
"property": "value",
"another-property": "another-value"
};
To remove a property from an object (mutating the object), you can do it like this:
delete myObject.property; // true
// or,
delete myObject['property']...
heyitsvajid.hashnode.dev1 min read