JavaScript 2025 · Objects and data
Deep copy an object
Copy nested data, including dates and maps.
const copy = structuredClone(original);
Official JavaScript 2025 documentation
JavaScript 2025 · Objects and data
Copy nested data, including dates and maps.
const copy = structuredClone(original);
Official JavaScript 2025 documentation
Was this page helpful?