clone-deep
clone-deep copied to clipboard
Handle circular references
This handles circular references cloning, still working on tests, but it works.
This will help our team quite a bit. Thanks and can't wait until this is merged
Hi,
This PR add dependencies to lodash.
I don't think it's required. Also, I chose this library to avoid this kind of dependencies.
cloneArrayDeep is merged into cloneObjectDeep, benchmark might be required before merge.
Regards,
Hi,
This PR add dependencies to
lodash.I don't think it's required. Also, I chose this library to avoid this kind of dependencies.
cloneArrayDeepis merged intocloneObjectDeep, benchmark might be required before merge.Regards,
You are correct about dependencies, I also worry about that, but it's not the entire lodash lib. I didn't add the whole lib, just what was needed. For this reason there is then a room for improvement, but that's the concept overall.
If someone is interested in updating this PR without lodash, I'd be happy to merge it in.