# disallow the Object.preventExtensions method (es/no-object-preventextensions)

This rule reports ES5 Object.preventExtensions method as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-object-preventextensions: error */ Object.preventExtensions(obj)
Now loading...

# 📚 References