Opposite of Object.freeze or Object.seal in JavaScript

前端 未结 9 1334
无人共我
无人共我 2020-12-02 21:41

What is the opposite of Object.freeze or Object.seal? Is there a function that has a name such as detach?

9条回答
  •  伪装坚强ぢ
    2020-12-02 22:43

    I was issue that problem too. TO fix it, I used JavaScript JSON API to unfreeze my object: const unfreezeObject = JSON.parse(JSON.stringify(freezeObject)). After, I did all mutations I needed.

提交回复
热议问题