Search
Create a deep clone of player object as newPlayer using the structuredClone method.
player
newPlayer
structuredClone