How do I remove a key from a JavaScript or Jquery object?

//Here, We assuming if the key is this,
var key = "Cow";

// We can remove this key by using these methods.
#Option-1:
delete thisIsObject[key]; 

#Option-2:
delete thisIsObject["Cow"];

#Option-3:
delete thisIsObject.Cow;

Leave a Comment