Remove Property from JavaScript Object


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. delete myObject.property_name;
  2. delete myObject['property_name'];

URL: http://stackoverflow.com/questions/208105/how-to-remove-a-property-from-a-javascript-object

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.