(possibleJson: string)
| 155 | } |
| 156 | |
| 157 | function isJSON(possibleJson: string): boolean { |
| 158 | try { |
| 159 | JSON.parse(possibleJson); |
| 160 | return true; |
| 161 | } catch (e: any) { |
| 162 | throw new Error(e.message); |
| 163 | } |
| 164 | } |
no outgoing calls
no test coverage detected