Рет қаралды 23,477
When trying to create copies of the values inside variables in JavaScript it is very important that you understand the difference between passing by value and passing by reference.
This video talks about the differences between deep and shallow copies and how you can force a deep copy.
If you are working with NodeJS keep in mind that the JSON method is the only native one currently available.
Code GIST: gist.github.com/prof3ssorSt3v...