* Assert that the given value is an array.
(value: any)
| 1927 | * Assert that the given value is an array. |
| 1928 | */ |
| 1929 | function assertIsArray<T>(value: any): asserts value is Array<T> { |
| 1930 | if (!Array.isArray(value)) { |
| 1931 | throw new Error(`AssertionError: expected an array`); |
| 1932 | } |
| 1933 | } |
| 1934 | |
| 1935 | /** |
| 1936 | * Creates an absolute `ParseSourceSpan` from the relative `ParseSpan`. |
no test coverage detected