UseDeepClone
katanakit-js / useDeepClone
Function: useDeepClone()
Section titled “Function: useDeepClone()”function useDeepClone<T>(value): T;Defined in: core/services/utils.service.ts:473
Deep clones a value using structuredClone with a JSON fallback.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value |
T |
Returns
Section titled “Returns”T
Example
Section titled “Example”const copy = useDeepClone(original);