circularclone

Clones circular object graphs in a non-recursive way

circularclone

Clones circular javascript object graphs, using circularjs to traverse them.

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