Javascript – How to deep clone a nested object indexed by Symbol() keys?
For usual object using string as key, we can use JSON.parse(JSON.stringify(myObject)). Another How can I deep clone an object using Symbol() as keys ? Note: structuredClone({[Symbol()]: 42}) returns {} which is not usable either