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

Method hasParticle

external/.scrollLibs.js:16803–16806  ·  view source on GitHub ↗
(particle)

Source from the content-addressed store, hash-verified

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)
16806 }
16807 _hasCue(cue) {
16808 return this._getCueIndex()[cue] !== undefined
16809 }

Callers

nothing calls this directly

Calls 2

getSubparticlesMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected