Object.freeze Is SHALLOW?!

Object.freeze LIES about immutability! It only freezes the top level. Nested objects are STILL mutable! This shallow freeze will cause bugs!

#javascript #javascripttricks #object.freeze #shallowfreeze #immutability #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectmutation #advancedjavascript

https://www.youtube.com/watch?v=79-55kxm-FA

Object.freeze Is SHALLOW?! #javascripttricks

YouTube