Thursday, January 16, 2014

examples of throwing away a property on a JavaScript object

  1. delete tabs[Object.keys(tabs)[0]];
  2. delete myJSONObject['regex'];

No comments:

Post a Comment