Message from JavaScript discussions

August 2018

— Haha why? :P


I'd just compare if this prop's value is the original object and not recurse down after comparing it.

— Need to remember what's been seen before

— It is also how the lib does it

— There's only one way something can refer to itself

— No there isn't

— There are many ways

— Like how?

— Hard circulars are 1:1 loops, some circulars stretch across the whole tree


var a;
a.a = a;

— You won't know it's there unless you check every node against whats been seen before, to avoid traversing the same node twice

Message permanent page

— You misunderstand what the problem is