Javascript object references & creating a copy
The way that javascript objects store values as variables can cause issues if you are unaware of how it is done. The difference is that values are stored as a reference, in contrast to primitive data types which are stored as the actual value.
As a ...
·5 min read·garyditsch.hashnode.devUpdated Read the article
Roger Mullins
Excellent overview! I can easily see myself falling into that trap. :-)