In my program, I have 2 objects, A and B, with some code like this:
var a = {"color":"blue"};
var b = a;
a.color = "orange";
console.log(b.color);
By setting B to A, they point to the same memory, and I don't want them to do that. I thought of running a for loop of all the keys and values, setting them individually to B, but there's got to be a better way. Any ideas?