if (Object.prototype.hasOwnProperty.call(a, b)) 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'
};