Edit It: Use JSON.parse(JSON.stringify()) to Deep Copy myName
This code shows how to use the JSON.parse(JSON.stringify()) method to deep copy a JavaScript object.
See it on StackBlitzThis code shows how to use the JSON.parse(JSON.stringify()) method to deep copy a JavaScript object.
See it on StackBlitz