Creates a deep clone of a value (supports arrays and objects).
The value to clone.
A deep cloned copy of the input value.
const original = { a: 1, b: { c: 2 } };const clone = deepClone(original); Copy
const original = { a: 1, b: { c: 2 } };const clone = deepClone(original);
Creates a deep clone of a value (supports arrays and objects).