delete keyword for removing key value pair javascript code example
Example 1: nodejs delete object key
delete obj.firstname;
Example 2: js Property Assignment delete
delete objectName['Property Name'];
delete objectName.propName;
delete obj.firstname;
delete objectName['Property Name'];
delete objectName.propName;