structuredClone vs JSON.parse(JSON.stringify()) for Deep Copying in Node.js
I copied a config object the way everyone does it. JSON.parse(JSON.stringify(obj)), one line, done. The object had a Date in it and a Map. The copy came back, the code ran, and half an hour later some