Here you can find the source of remove(key)
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; };