MCPcopy Create free account
hub / github.com/SplootCode/splootcode / equals

Method equals

packages/editor/src/context/selection.ts:941–943  ·  view source on GitHub ↗
(other: NodeCursor)

Source from the content-addressed store, hash-verified

939 }
940
941 equals(other: NodeCursor): boolean {
942 return this.listBlock === other.listBlock && this.index === other.index
943 }
944
945 getChainToRoot(): number[] {
946 return this.listBlock.getChainToRoot().concat(this.index)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected