The global structuredClone() can be used to create a deep copy of a given value.
Example
In this example, we clone an object. After cloning, changes to each object do not affect the other object.
const fruits = {
citrus: ["orange", "grapefruit", "l...