no-prototype-builtins - Rules - ESLint - Pluggable JavaScript linter

PHOTO EMBED

Sun Feb 13 2022 16:48:09 GMT+0000 (Coordinated Universal Time)

Saved by @arielvol

/*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");
content_copyCOPY

https://eslint.org/docs/rules/no-prototype-builtins