Nodejs Object Key Delete remove(key)

Here you can find the source of remove(key)

Method Source Code

Object.prototype.remove = function (key) {
   if (!this.hasOwnProperty(key))
      return//from   ww w .j a v a 2 s. com
   if (isNaN(parseInt(key)) || !(this instanceof Array))
      delete this[key]
   else
      this.splice(key, 1)

   return this;
};