Combine spread and destructuring to update objects without mutating them. This pattern is common in React and Redux.
const user = { name: "Alice", age: 25 };
const updated = { ...user, age: 26 };
// user unchanged, updated has new age
The original remains intact. You create a new object with your changes.