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

Function assertDomNode

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

Source from the content-addressed store, hash-verified

116}
117
118export function assertDomNode(node: any): asserts node is Node {
119 if (!(node instanceof Node)) {
120 throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);
121 }
122}
123
124export function assertElement(node: any): asserts node is Element {
125 if (!(node instanceof Element)) {

Callers 6

constructorMethod · 0.90
getLContextFunction · 0.90
processI18nInsertBeforeFunction · 0.90
icuContainerIteratorNextFunction · 0.90
applyMutableOpCodesFunction · 0.90
applyIcuSwitchCaseFunction · 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…