Nodejs Utililty Methods Object Key Delete

List of utility methods to do Object Key Delete

Description

The list of methods to do Object Key Delete are organized into topic(s).

Method

remove(key)
Object.prototype.remove = function (key) {
   if (!this.hasOwnProperty(key))
      return
   if (isNaN(parseInt(key)) || !(this instanceof Array))
      delete this[key]
   else
      this.splice(key, 1)
  return this;
};
...