delete anayltics property code example
Example 1: implement the remove property function
function removeProperty(obj, prop) {
if (obj.hasOwnProperty(prop)) {
delete obj[prop];
return true;
}
return false;
}
Example 2: js Property Assignment delete
delete objectName['Property Name'];
delete objectName.propName;