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