Object.prototype.has=Object.prototype.hasOwnProperty; // var a={a: 1}; console.log( a.has("a") ); delete Object.prototype.hasOwnProperty; console.log( a.has("a") );