(regExp: RegExp, value: string)
| 75 | const regExpTestRaw = RegExp.prototype.test; |
| 76 | /* Shared /g regexes keep state in lastIndex, so reset it before each test */ |
| 77 | const regExpTest = function (regExp: RegExp, value: string): boolean { |
| 78 | if (regExp instanceof RegExp) { |
| 79 | regExp.lastIndex = 0; |
| 80 | } |
| 81 | |
| 82 | return apply(regExpTestRaw, regExp, [value]); |
| 83 | }; |
| 84 | |
| 85 | const typeErrorCreate = unconstruct(TypeError); |
| 86 |
no outgoing calls
no test coverage detected