How to deep clone an object in JavaScript?
Native deep cloning
There's now a JS standard called "structured cloning", that works experimentally in Node 11 and later, will land in browsers, and which has polyfills for existing systems.
The structuredClone global function is provided by Node 1...
heyitsvajid.hashnode.dev2 min read