# disallow the Object.getOwnPropertyDescriptor method (es/no-object-getownpropertydescriptor)

This rule reports ES5 Object.getOwnPropertyDescriptor method as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-object-getownpropertydescriptor: error */ var descriptors = Object.getOwnPropertyDescriptor(obj)
Now loading...

# 📚 References