isEqual does not check the diff off a [Circular] counterpart member of the same type (Array or Object) #767

stegrams opened this Issue Sep 9, 2012 · 2 comments


None yet

2 participants

var a_array = ["everything is cheked but", "this", "is not"];
a_array[1] = a_array;
// [ 'everything is cheked but', [Circular], 'is not' ]
var b_array = ["everything is cheked but", ["this", "array"], "is not"];

// true

var a_object = {everything: "is cheked", but:"this", is:"not"};
a_object.but = a_object;
// { everything: 'is cheked', but: [Circular], is: 'not' }
var b_object = {everything: "is cheked", but:{that:"object"}, is:"not"};

// true
@jashkenas jashkenas closed this in 3b02326 Sep 10, 2012

That was a very simple and elegant fix. I tried hard to hit it again but now I give up. Thanx for your quick responce.



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment