Hi Kevin Dalman, thanks for reading my article and responding to it! I agree that the article could include more educational material.

I updated this article to add 3 more methods of deep copy: a custom function, JSON.parse/JSON.stringify, and the rfdc (Really Fast Deep Clone) library.

Take a look and let me know what you think! Thanks again!!!

Personally, I love “Magic Libraries” because 1) They tend to work, 2) They can be swapped out or replaced with custom solutions later, and 3) You can look at the source code to learn how they work.

That’s why I end up recommending rfdc over a custom function, though I added an example of a deep copy function that will work in most cases.

Written by

🤓 The physical therapist who writes JavaScript 💪 Web Developer 😎 Mentor 🧠 DPT 😄 SEO Expert 😁 React 😆 Jamstack 🗯️ Ask me anything 👉 DoctorDerek.com 👈

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store