Object.isSealed()

The Object.isSealed() method determines if an object is sealed.

const object1 = {
  property1: 42
};

console.log(Object.isSealed(object1));
// expected output: false

Object.seal(object1);

console.log(Object.isSealed(object1));
// expected output: true

Last updated