* Assert that the given value is an array.
(value: any)
| 1811 | * Assert that the given value is an array. |
| 1812 | */ |
| 1813 | function assertIsArray<T>(value: any): asserts value is Array<T> { |
| 1814 | if (!Array.isArray(value)) { |
| 1815 | throw new Error(`AssertionError: expected an array`); |
| 1816 | } |
| 1817 | } |
| 1818 | |
| 1819 | /** |
| 1820 | * Creates an absolute `ParseSourceSpan` from the relative `ParseSpan`. |
no test coverage detected
searching dependent graphs…