Deep clone utility, optimal code paths for Node.js and Browsers
const clone = require('ben-reilly')
const copy = clone(anyObject)
This library has different implementations for Node.js and Browsers. In Node.js it will use the very fast v8 serializer
and uses realistic-structured-clone
in the browser.
Library is named after Ben Reilly the "Scarlet Spider," a clone of Peter Parker.