Object.prototype.hasOwnProperty.call(object, key) code example
Example: hasOwnProperty.call js
var foo = {
hasOwnProperty: function() {
return false;
},
bar: 'I belong to foo'
};
var foo = {
hasOwnProperty: function() {
return false;
},
bar: 'I belong to foo'
};