cloneJsonValue
cloneJsonValue<
T>(value):T
Defined in: json-utils.ts:12
Create a deep clone of a JSON-serializable value.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”T
JSON-compatible data to clone.
Returns
Section titled “Returns”T
A deep-cloned copy created with JSON.parse(JSON.stringify(...)).
Remarks
Section titled “Remarks”Values that are not JSON-serializable, such as functions, undefined,
BigInt, class instances, and Date objects, are not preserved faithfully.