(obj: any)
| 56 | } |
| 57 | |
| 58 | function isURL(obj: any): obj is URL { |
| 59 | try { |
| 60 | return obj instanceof URL || Object.prototype.toString.call(obj) === '[object URL]'; |
| 61 | } catch (error) { |
| 62 | return false; |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | function isError(obj: any): obj is Error { |
| 67 | try { |
no test coverage detected
searching dependent graphs…