(x: number)
| 104 | return '!n'; |
| 105 | } |
| 106 | static number(x: number) { |
| 107 | if (!Number.isFinite(x)) return '!n'; |
| 108 | // strip '+' out of exponent, '-' is ok though |
| 109 | return String(x).replace(/\+/, ''); |
| 110 | } |
| 111 | static object(x: Record<string, JSONValue> | null) { |
| 112 | if (x) { |
| 113 | // because typeof null === 'object' |
no outgoing calls
no test coverage detected