Organizational Research By

Surprising Reserch Topic

How to remove a property from a JavaScript object


 I create an object thusly:

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

What is the best way to remove the property 'regex' to end up with this new myJSONObject:

var myJSONObject = {"ircEvent": "PRIVMSG", "method": "newURI"};

asked May 19, 2015 in JAVASCRIPT by rajesh
0 votes
16 views



Related Hot Questions

2 Answers

0 votes
NULL
answered May 19, 2015 by rajesh
0 votes
NULL
answered May 19, 2015 by rajesh

...