The Object.isSealed() method determines if an object is sealed.
Object.isSealed()
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 4 years ago