error Do not access Object.prototype method 'hasOwnProperty' from target object no-prototype-builtins code example
Example: do not access object.prototype method 'hasownproperty' from target object no-prototype-builtins solution
/*eslint no-prototype-builtins: "error"*/
var hasBarProperty = Object.prototype.hasOwnProperty.call(foo, "bar");
var isPrototypeOfBar = Object.prototype.isPrototypeOf.call(foo, bar);
var barIsEnumerable = {}.propertyIsEnumerable.call(foo, "bar");