Questions tagged [structured-clone]
16 questions
-4
votes
2 answers
structuredClone with function giving an error
I want to do a deep copy of an object which also has function as keys.
So I do
deepCopy = structuredClone(existingObjWithFns);
However when this runs, I get the below error:
Uncaught (in promise) DOMException: Failed to execute 'structuredClone'…

copenndthagen
- 49,230
- 102
- 290
- 442