(obj: any)
| 114 | } |
| 115 | |
| 116 | export function isRegExp(obj: any): obj is RegExp { |
| 117 | if (!obj || typeof obj !== 'object') { |
| 118 | return false; |
| 119 | } |
| 120 | return 'test' in obj && 'exec' in obj && 'compile' in obj; |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * The prop supportVariable SHOULD take precedence over default global supportVariable. |
no outgoing calls
no test coverage detected
searching dependent graphs…