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

Function assertElement

packages/core/src/util/assert.ts:124–128  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

122}
123
124export function assertElement(node: any): asserts node is Element {
125 if (!(node instanceof Element)) {
126 throwError(`The provided value must be an element but got ${stringify(node)}`);
127 }
128}
129
130export function assertIndexInRange(arr: any[], index: number) {
131 assertDefined(arr, 'Array must be defined.');

Callers 1

getTriggerElementFunction · 0.90

Calls 2

stringifyFunction · 0.90
throwErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…