Skip to content

Function: stringifyKey() ​

ts
function stringifyKey(target: unknown): string;

Stringify a table key for JSON.

Parameters ​

ParameterTypeDescription
targetunknownTable key.

Returns ​

string

The key as text, <k_type> for a key that is neither a string nor a number.