Object.isSealedintermediate// Check if an object is sealed
const obj = { a: 1 }
Object.isSealed(obj) // β false
Object.seal(obj)
Object.isSealed(obj) // β trueUse Object.isSealed() to check whether an object's properties cannot be added or removed (though values may still change).
Since Object.freeze() makes an object non-extensible and all properties non-configurable (and non-writable), a frozen object is always also sealed.
Challenge: Demonstrate that a frozen object is also sealed.