(key: string)
| 140 | if (entries.length === 0) return '{}'; |
| 141 | |
| 142 | const formatKey = (key: string): string => (format === 'json' ? JSON.stringify(key) : key); |
| 143 | const formatted = entries.map( |
| 144 | ([key, value]) => `${formatKey(key)}: ${stringify(value, format, indentationLevel + 1)}`, |
| 145 | ); |