Create a deep copy of an object (vs. a shallow copy of references)
Should be replaced by structuredClone once released.
structuredClone
Object to copy
Type
Create a deep copy of an object (vs. a shallow copy of references)
Should be replaced by
structuredClone
once released.