JavaScript: Object.isSealed

By Xah Lee. Date: . Last updated: .
Object.isSealed( obj)
Return true if object obj is sealed, else false.

[see Object.seal]

[see Prevent Adding Property]

const x3 = {};
console.log(Object.isSealed(x3)); // false
Object.seal(x3);
console.log(Object.isSealed(x3)); // true
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Object Object

prototype