Values & References15 / 18
Up next

Freeze is shallow

// Object.freeze is shallow: nested values are still mutable
const data = Object.freeze({ tags: ["a", "b"] });
data.tags.push("c");
console.log(data.tags);
What you're solving

nested objects stay mutable