(possibleUrl: string)
| 146 | } |
| 147 | |
| 148 | function isUrl(possibleUrl: string): boolean { |
| 149 | try { |
| 150 | new URL(possibleUrl); |
| 151 | return true; |
| 152 | } catch { |
| 153 | return false; |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | function isJSON(possibleJson: string): boolean { |
| 158 | try { |
no outgoing calls
no test coverage detected