20 lines code! Deep copy the given object considering circular structure
github.com/zhaolihang/fast-deep-copy
zhaolihang/fast-deep-copy