# es/no-object-getprototypeof
disallow the
Object.getPrototypeOfmethod
- ✅ The following configurations enable this rule:
plugin:es/no-new-in-es5andplugin:es/restrict-to-es3
This rule reports ES5 Object.getPrototypeOf method as errors.
# Examples
⛔ Examples of incorrect code for this rule:
/*eslint es/no-object-getprototypeof: error */
var proto = Object.getPrototypeOf(obj)