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