node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

circularjs

circularjs

Traverse circular javascript object graphs in a non-recursive way.

npm install circularjs
 
var traverse= require('circularjs');
 
var a= { name: 'Andrea' },
    e= { name: 'Elena' };
    
a.daughter= e;
e.dad= a;
 
traverse(a,console.log);

Linked projects