javascript object has value code example Example: check object has key javascript Object.prototype.hasOwnProperty()