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

Method findStumpParticleByChildString

external/.scrollLibs.js:22857–22864  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

22855 return this.findStumpParticlesByChild(line)[0]
22856 }
22857 findStumpParticleByChildString(line) {
22858 return this.topDownArray.find(particle =>
22859 particle
22860 .map(subparticle => subparticle.getLine())
22861 .join("\n")
22862 .includes(line)
22863 )
22864 }
22865 findStumpParticleByCue(cue) {
22866 return this._findStumpParticlesByBase(cue)[0]
22867 }

Callers

nothing calls this directly

Calls 4

mapMethod · 0.80
findMethod · 0.45
joinMethod · 0.45
getLineMethod · 0.45

Tested by

no test coverage detected