CKTIS / JavaScript
Object.isSealed — checking whether an object is sealed
Object.isSealed(value) checks whether an object is non-extensible and all its own properties are non-configurable. This does not imply immutable values or sealed nested objects.
Version: ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
Syntax
Object.isSealed(value)Object.isSealed(value) returns true when the object is non-extensible and every own property has configurable: false. The check includes non-enumerable properties and Symbol keys, but not inherited properties. It inspects the state; unlike Object.seal, it does not impose these restrictions.
Sealing prevents adding and deleting own properties and changes prohibited by their non-configurability. Sealing does not by itself change the writable attribute. On an ordinary object, you can still assign a new value to a writable own data property. On exotic objects, however, writable: true does not guarantee that assignment succeeds. For example, a sealed module namespace object reports writable: true for its exported bindings but rejects assignments to them. Object.isFrozen additionally requires own data properties to be non-writable. Neither check is recursive.
Object.preventExtensions alone is generally insufficient if configurable properties remain. However, an empty non-extensible object is sealed. In current ECMAScript, primitive arguments, including null and undefined, return true; this does not mean they are objects.
For a Proxy, the check can invoke traps and throw, so it is not always a side-effect-free inspection. This is an ECMAScript language API, not a browser Web API; the language specification is not a browser compatibility table.
Examples
const item = { count: 1, nested: { active: true } };
console.log(Object.isSealed(item));
Object.seal(item);
item.count = 2;
console.log(Object.isSealed(item));
console.log(Object.isFrozen(item));
console.log(item.count);
console.log(Object.isSealed(item.nested));
console.log(Object.isSealed(Object.preventExtensions({})));
console.log(Object.isSealed(null));Result
false true false 2 false true true
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.