Use Object.assign() to Clone Objects
Problem
Assigning objects creates references, causing accidental mutations.
Solution
Use Object.assign({}, obj) or spread {...obj} to create shallow copies.
Benefit
Prevents mutation bugs and allows safe object manipulation.