Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

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

Related Hot Questions

Government Jobs Opening