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

Method isLeaf

packages/core/src/document/node/node.ts:345–347  ·  view source on GitHub ↗

* whether this node is a leaf node

()

Source from the content-addressed store, hash-verified

343 * whether this node is a leaf node
344 */
345 get isLeaf() {
346 return this._children ? this._children.isEmpty() : true
347 }
348
349 toString() {
350 return this.id

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected