MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / hasNode

Method hasNode

packages/core/src/document/document.ts:228–231  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

226 }
227
228 hasNode(id: string) {
229 const node = this.getNode(id)
230 return node ? !node.isPurged : false
231 }
232
233 removeNode(idOrNode: string | Node) {
234 let node: Node | null

Callers 2

createNodeMethod · 0.95
tidyMethod · 0.80

Calls 1

getNodeMethod · 0.95

Tested by

no test coverage detected