Iman Roustaforirousta.hashnode.net·Jan 5, 2023How to clone anything in JavaScriptThe global structuredClone() can be used to create a deep copy of a given value. Example In this example, we clone an object. After cloning, changes to each object do not affect the other object. const fruits = { citrus: ["orange", "grapefruit", "l...1 like·38 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.