check for keys in an object code example Example: check object has key javascript Object.prototype.hasOwnProperty()