Deep Copying Objects In JavaScript
When you try to copy objects in JavaScript with Object.assign or the spread operator, you might think you've avoided copying the items by reference.
And yes, this is true, but for only top-level properties of the object, if you try to update nested p...
faarda.hashnode.dev2 min read