Object Creation Methods
What pattern ensures object immutability?
const createImmutable = (obj) => {
const copy = JSON.parse(JSON.stringify(obj));
return new Proxy(copy, {
set: () => false,
deleteProperty: () => false,
defineProperty: () => false
});
};