clsx-plus • Docs
clsx-plus / 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()
.
Parameter | Type | Description |
---|---|---|
|
|
The cache key value to serialize. |
string
The serialized cache key value.