Directus / @directus/memory / utils / serialize
Function: serialize() ​
serialize(
val
):Uint8Array
<ArrayBufferLike
>
Defined in: packages/memory/src/utils/serialize.ts:11
Serialize a given JavaScript value to it's Uint8Array equivalent
Parameters ​
val ​
unknown
JS value to serialize
Returns ​
Uint8Array
<ArrayBufferLike
>
Uint8Array of serialized value