Have I gone mad?
I am trying to clone an object an then delete an element from it, but it also deletes from the initial object. I feel like I no longer understand life!
var obj1 = {
'name' : 'bob',
'hair' : 'brown'
}
var obj2 = obj1;
delete obj2.hair;
This delete's obj1.hair. How? What? Why?