MCPcopy Create free account
hub / github.com/breck7/scroll / getOlderSiblings

Method getOlderSiblings

external/.scrollLibs.js:15296–15299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15294 return !this.isNodeJs()
15295 }
15296 getOlderSiblings() {
15297 if (this.isRoot()) return []
15298 return this.parent.slice(0, this.index)
15299 }
15300 _getClosestOlderSibling() {
15301 const olderSiblings = this.getOlderSiblings()
15302 return olderSiblings[olderSiblings.length - 1]

Callers 2

Calls 2

isRootMethod · 0.95
sliceMethod · 0.80

Tested by

no test coverage detected