Open burakkilic opened 8 years ago
Hello, A possible solution the JSON stringify / parse methods combination.
var object2 = JSON.parse(JSON.stringify(object));
But to save the instance, we should remove the _id fields right? I think it won't be easy without iteration.
Hi;
How can I duplicate a tree? Should I Iterate over the tree? Or any suggestions?
Thanks