Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 793 Bytes

Function.serializeCacheKeyValue.md

File metadata and controls

52 lines (33 loc) · 793 Bytes

clsx-plusDocs


clsx-plus / serializeCacheKeyValue

Function: serializeCacheKeyValue()

function serializeCacheKeyValue(value): string;

Internal

A utility function for serializing cache key values. This function uses JSON.stringify to serialize the value. If the value is a function, it will be serialized via .toString().

Parameters

Parameter Type Description

value

unknown

The cache key value to serialize.

Returns

string

The serialized cache key value.

Defined in

src/utilities.ts:99