Artemko
Aug 14, 2022

--

At first, why you would do this? At second for the most cases it’s enough to do the following:
const b = {…a};

And in Node:

v8.deserialize(v8.serialize(object));

--

--

Artemko
Artemko

Written by Artemko

Software Engineer with experience.

No responses yet