(key: string | number)
| 5 | export const ELLIPSIS = "…"; |
| 6 | |
| 7 | export function quoteAsNeeded(key: string | number) { |
| 8 | return unquotedPropertyValidator(String(key)).needsQuotes ? `"${key}"` : key; |
| 9 | } |
| 10 | |
| 11 | export function wrapProperty(key: string | number, value: string) { |
| 12 | return `${quoteAsNeeded(key)}: ${value}`; |