Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
isSealed(object)
object
An object.
true if the object is sealed, otherwise false.
let obj = {}
Object.seal(obj)
Object.isSealed(obj)
true
let obj = {}
Object.preventExtensions(obj)
Object.isSealed(obj)
true