# disallow the Object.getOwnPropertyNames method (es/no-object-getownpropertynames)

This rule reports ES5 Object.getOwnPropertyNames method as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-object-getownpropertynames: error */ Object.getOwnPropertyNames(obj, "prop", {})
Now loading...

# 📚 References