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

Method get

packages/core/src/document/node/node-children.ts:161–167  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

159 }
160
161 get(index: number) {
162 if (index < 0 || index >= this.children.length) {
163 return null
164 }
165
166 return this.children[index]
167 }
168
169 has(node: Node) {
170 return this.children.indexOf(node) > -1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected