(value: string)
| 27 | * a value containing one would end the statement early. |
| 28 | */ |
| 29 | export const jsString = (value: string): string => |
| 30 | JSON.stringify(value).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029"); |
| 31 | |
| 32 | export const jsLiteral = (value: unknown): string => |
| 33 | `JSON.parse(${JSON.stringify(JSON.stringify(value ?? null)) |
no outgoing calls
no test coverage detected