structuredClone()
A function that makes a deep copy of many built-in JavaScript values.
What does structuredClone() do in JavaScript?
structuredClone() — A function that makes a deep copy of many built-in JavaScript values.
const copiedOrder = structuredClone(order);
Level: Freelancer · More JavaScript terms at this level
Updated