I want to do something like...
myObject myObj = GetmyObj()//create and fill a new object
myObject newObj = myObj.Clone();
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I want to do something like...
myObject myObj = GetmyObj()//create and fill a new object
myObject newObj = myObj.Clone();
What is the most efficient way to clone a JavaScript object? I've seen: