Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How do I remove a property from a JavaScript object

var myObject = {
    "ircEvent": "PRIVMSG",
    "method": "newURI",
    "regex": "^http://.*"
};
delete myObject.regex;

console.log(myObject);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #remove #property #JavaScript #object
ADD COMMENT
Topic
Name
7+8 =