Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 608 Bytes

types.printkey.md

File metadata and controls

27 lines (16 loc) · 608 Bytes

Home > @skunkteam/types > printKey

printKey() function

Print a property-key in a JavaScript compatible way.

Signature:

declare function printKey(key: string): string;

Parameters

Parameter Type Description
key string

Returns:

string

Remarks

This means that if the the key is a valid identifier it will be returned as is, otherwise it will be quoted.