Which method creates a deep copy handling Dates, Maps and circular references?
- A Object.assign()
- B JSON.parse(JSON.stringify(obj))
- C structuredClone(obj)
- D Array.from(obj)
Answer
structuredClone(obj)
structuredClone is the modern built-in. The JSON approach is lossy, dropping functions and undefined, converting Dates to strings and throwing on cycles.





