This is called a shallow copy (or really, no copy at all). The fix? A deep copy — a completely independent clone: const b = JSON.parse (JSON.stringify (a)); // simple objects // or const b = ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results