$ npm install bare-structured-clone
Structured cloning algorithm for JavaScript.
npm i bare-structured-clone
const structuredClone = require('bare-structured-clone') const copy = structuredClone({ hello: 'world' })
Apache-2.0