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

Method has

external/.scrollLibs.js:16795–16802  ·  view source on GitHub ↗
(cuePath)

Source from the content-addressed store, hash-verified

16793 return this._hasCue(cue)
16794 }
16795 has(cuePath) {
16796 const edgeSymbol = this.edgeSymbol
16797 if (!cuePath.includes(edgeSymbol)) return this.hasCue(cuePath)
16798 const parts = cuePath.split(edgeSymbol)
16799 const next = this.getParticle(parts.shift())
16800 if (!next) return false
16801 return next.has(parts.join(edgeSymbol))
16802 }
16803 hasParticle(particle) {
16804 const needle = particle.toString()
16805 return this.getSubparticles().some(particle => particle.toString() === needle)

Callers 15

indexOfMethod · 0.95
extendMethod · 0.95
setPropertyIfMissingMethod · 0.95
.scrollLibs.jsFile · 0.45
getSparsityMethod · 0.45
fnMethod · 0.45
withMethod · 0.45
withoutMethod · 0.45
getCustomIndexMethod · 0.45

Calls 5

hasCueMethod · 0.95
getParticleMethod · 0.95
splitMethod · 0.80
shiftMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected