(textToMatch: string, matcher: string | RegExp)
| 280 | } |
| 281 | |
| 282 | export function matches(textToMatch: string, matcher: string | RegExp): boolean { |
| 283 | if (matcher instanceof RegExp) { |
| 284 | return matcher.test(textToMatch) |
| 285 | } |
| 286 | else { |
| 287 | return textToMatch.includes(String(matcher)) |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | export function arrayAsSetComparison(a: unknown, b: unknown): boolean | undefined { |
| 292 | if (Array.isArray(a) && Array.isArray(b)) { |
no test coverage detected