myObj.hasOwnProperty('key') // it checks object for particular key and not on prototype
Object.prototype.hasOwnProperty()