Returns true if new properties can be added to an object.
isExtensible(object)
object
An object.
true if new properties can be added to the object, otherwise false.
let obj = {}
Object.isExtensible(obj)
true
let obj = {}
Object.preventExtensions(obj)
Object.isExtensible(obj)
false
let obj = {}
Object.freeze(obj)
Object.isExtensible(obj)
false