Object isExtensible() method

Find all information about the JavaScript isExtensible() method of the Object object

This method checks whether new properties can be added to the object.

Any object is extensible unless it has been used as

usage:

const dog = {}
Object.isExtensible(dog) //true
const cat = {}
Object.freeze(cat)
Object.isExtensible(cat) //false

Download mine for freeJavaScript beginner's manual


More js tutorials: