MCPcopy Create free account
hub / github.com/editablejs/editable / isDOMComment

Function isDOMComment

packages/models/src/utils/dom.ts:34–36  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

32 */
33
34export const isDOMComment = (value: any): value is DOMComment => {
35 return isDOMNode(value) && value.nodeType === 8
36}
37
38/**
39 * Check if a DOM node is an element node.

Callers 1

getEditableChildAndIndexFunction · 0.90

Calls 1

isDOMNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…