(value: any)
| 537 | |
| 538 | // deno-lint-ignore no-explicit-any |
| 539 | function assertIsIterable(value: any): asserts value is Iterable<unknown> { |
| 540 | if (value == null) { |
| 541 | throw new AssertionError("The value is null or undefined"); |
| 542 | } |
| 543 | if (typeof value[Symbol.iterator] !== "function") { |
| 544 | throw new AssertionError("The value is not iterable"); |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | export function toMatch( |
| 549 | context: MatcherContext, |