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