You are here

12 October 2016

Deleting object value with key in javascript. For this you can use the delete operator. Permits you to remove a property from an object.

Source code viewer
  1. delete myObject.myKey;
  2. // or
  3. delete myObject['myKey'];
Programming Language: Javascript