MCPcopy Create free account
hub / github.com/angular/components / ssrSafeIsElement

Function ssrSafeIsElement

src/material/datepicker/aria-accessible-name.ts:68–70  ·  view source on GitHub ↗

* Determine if argument node is an Element based on `nodeType` property. This function is safe to * use with server-side rendering.

(node: Node)

Source from the content-addressed store, hash-verified

66 * use with server-side rendering.
67 */
68function ssrSafeIsElement(node: Node): node is Element {
69 return node.nodeType === Node.ELEMENT_NODE;
70}
71
72/**
73 * Determine if argument node is an HTMLInputElement based on `nodeName` property. This function is

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected