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

Method next

external/.scrollLibs.js:16261–16268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16259 return currentParticle ? currentParticle._getParticleByPath(parts.join(edgeSymbol)) : undefined
16260 }
16261 get next() {
16262 if (this.isRoot()) return this
16263 const index = this.index
16264 const parent = this.parent
16265 const length = parent.length
16266 const next = index + 1
16267 return next === length ? parent._getSubparticlesArray()[0] : parent._getSubparticlesArray()[next]
16268 }
16269 get previous() {
16270 if (this.isRoot()) return this
16271 const index = this.index

Callers 6

appendFromStreamMethod · 0.80
.datatables.jsFile · 0.80
reduceFunction · 0.80
disjointFunction · 0.80
supersetFunction · 0.80

Calls 2

isRootMethod · 0.95
_getSubparticlesArrayMethod · 0.80

Tested by

no test coverage detected