Matheus Ribeirocodebasement.hashnode.dev·Sep 29, 2023Why Do Weird Things Happen When I Clone Objects In JavaScript?We've all been there. You need to copy an array or an object into a new one in a new variable. It seems easy enough, just assign the first variable as the value of the second one. But then, when you start to mess with the copy, weird bugs show up, be...63 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.