Skip to content

Documentation / @andrew_l/toolkit / toKey

Function: toKey() ​

toKey(value): string | symbol

Converts value to a string key if it's not a string or symbol.

Parameters ​

value ​

any

The value to inspect.

Returns ​

string | symbol