how to remove a key a js object code example
Example 1: nodejs delete object key
delete obj.firstname;
Example 2: javascript remove function from object
var obj = {
func: function(a, b) {
return a + b;
}
};
delete obj.func;
obj.func(); // Uncaught TypeError: obj.func is not a function