JS: Object.isFrozen
Object.isFrozen(obj)
-
Return
true
if the object is frozen. 〔see Object.freeze〕const jj = {}; console.log(Object.isFrozen(jj) === false); Object.freeze(jj); console.log(Object.isFrozen(jj));
Object.isFrozen(obj)
true
if the object is frozen.
〔see Object.freeze〕
const jj = {}; console.log(Object.isFrozen(jj) === false); Object.freeze(jj); console.log(Object.isFrozen(jj));