MCPcopy
hub / github.com/vuejs/core / isComment

Function isComment

packages/runtime-core/src/hydration.ts:84–85  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

82}
83
84export const isComment = (node: Node): node is Comment =>
85 node.nodeType === DOMNodeTypes.COMMENT
86
87// Note: hydration is DOM-specific
88// But we have to place it in core due to tight coupling with core - splitting

Callers 5

forEachElementFunction · 0.90
hydrateNodeFunction · 0.70
hydrateFragmentFunction · 0.70
handleMismatchFunction · 0.70
locateClosingAnchorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected