Skip to content

cloneJsonValue

cloneJsonValue<T>(value): T

Defined in: json-utils.ts:12

Create a deep clone of a JSON-serializable value.

T

T

JSON-compatible data to clone.

T

A deep-cloned copy created with JSON.parse(JSON.stringify(...)).

Values that are not JSON-serializable, such as functions, undefined, BigInt, class instances, and Date objects, are not preserved faithfully.