debugString()function
debugString(value: string): string
| Param | Type | |
|---|---|---|
value | string | The string to debug. required |
| Return | |
|---|---|
string | The quoted and escaped string. |
Convert a string into a quoted, escaped debug string.
- Wraps the value in double quotes and escapes control characters, quotes, and backslashes.
Examples
debugString("a\tb") // `"a\\tb"`