Universal DevTools Kit SDK / @u-devtools/utils / serialize
Function: serialize()
serialize<
T>(data):T
Defined in: serialize.ts:8
Serializes data by removing functions and circular references. Useful for sending complex objects through BroadcastChannel or JSON.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
data | T | Data to serialize |
Returns
T
Serialized data with functions removed and circular references replaced with '[Circular]'