Jul 19, 2023
Hey Jefferson, thanks so much for your kind words! That's a great question -- actually cloning with the spread operator is a shallow clone, whereas cloning with Stringify and Parse is a deep clone. It's one of my favorite subjects, so let me share 2 of my other articles with you.
https://javascript.plainenglish.io/how-to-deep-copy-objects-and-arrays-in-javascript-7c911359b089