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

Method getFrom

external/.scrollLibs.js:16209–16212  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

16207 return this.index === 0
16208 }
16209 getFrom(prefix) {
16210 const hit = this.filter(particle => particle.getLine().startsWith(prefix))[0]
16211 if (hit) return hit.getLine().substr((prefix + this.atomBreakSymbol).length)
16212 }
16213 get(cuePath) {
16214 const particle = this._getParticleByPath(cuePath)
16215 return particle === undefined ? undefined : particle.content

Callers

nothing calls this directly

Calls 2

filterMethod · 0.95
getLineMethod · 0.45

Tested by

no test coverage detected