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
BUY
ΣJS
JavaScript in Depth

JS Obj Reference

Object Object

prototype