structuredClone with function giving an error – Javascript
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' on…