(obj: any)
| 39 | }; |
| 40 | |
| 41 | function isRegExp(obj: any): obj is RegExp { |
| 42 | try { |
| 43 | return obj instanceof RegExp || Object.prototype.toString.call(obj) === '[object RegExp]'; |
| 44 | } catch (error) { |
| 45 | return false; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | function isDate(obj: any): obj is Date { |
| 50 | try { |
no test coverage detected
searching dependent graphs…