SyntaxFix
Write A Post
Hire A Developer
Questions
This code causes esLint issue: no-prototype-builtins
no-prototype-builtins
foo.hasOwnProperty("bar")
The suggest way here is:
Object.prototype.hasOwnProperty.call(foo, "bar");