I have already looked at this question, but I'm not looking for references. I'd like to know how to check if two objects, or two arrays, two maps, two sets, etc, have the same values as another.
Edit Not only the same values, but also keys!
For example;
var a = {foo: "bar"};
var b = {foo: "bar"};
a == b // I'd like true, but this returns false
Above code will return false, because of object reference.
I do know that "foo" == "foo"
will return true, because that's how strings work, but how's that for objects, arrays, maps, etc?