node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

circularclone

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));