structuredClose(myObject) vs JSON.parse(JSON.stringify(myObject)) (version: 0)
Both structuredClone(myObject) and JSON.parse(JSON.stringify(myObject)) can be used to create deep copies of JavaScript objects, but which is faster for a decent sized object?
Comparing performance of: structuredClone(myObject) vs JSON.parse(JSON.stringify(myObject))