Skip to content

deepFreeze

객체를 깊게 동결합니다.

참고: MDN - Object freeze

ts
const obj = { a: 1, b: [1,2], c: { c1: 'foo', c2: 200 }};
deepFreeze(obj);