I am confused. I create a copy from myObjOne, than i delete an entry from myObjOne and JS delete the entry in my copy(myObjTwo) too? But w
myObjOne
myObjTwo
You can use jQuery like so:
var myObjTwo = jQuery.extend(true, {}, myObjOne);
The first argument indicates that we want to make a deep copy of myObjOne.