Skip to main content

Function: deepClone()

deepClone(obj): unknown

Deeply clones an object using structuredClone if available, otherwise falls back to a custom implementation.

Parameters

obj: unknown

The object to be cloned.

Returns

unknown

A deep clone of the input object.

Defined in

packages/core/src/utilities/deepClone.ts:7