Say I create an object thus:
var myObject = {\"ircEvent\": \"PRIVMSG\", \"method\": \"newURI\", \"regex\": \"^http://.*\"};
What is
Since I use underscore.js in almost every project, I would use the keys function:
var obj = {name: 'gach', hello: 'world'}; console.log(_.keys(obj));
The output of that will be:
['name', 'hello']