MCPcopy Index your code
hub / github.com/angular/angular / assertIsArray

Function assertIsArray

packages/compiler/src/template/pipeline/src/ingest.ts:1813–1817  ·  view source on GitHub ↗

* Assert that the given value is an array.

(value: any)

Source from the content-addressed store, hash-verified

1811 * Assert that the given value is an array.
1812 */
1813function 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`.

Callers 1

ingestReferencesFunction · 0.85

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…