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

Method getSubparticlesByParser

external/.scrollLibs.js:16733–16735  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

16731 return this.map(particle => particle.content)
16732 }
16733 getSubparticlesByParser(parser) {
16734 return this.filter(subparticle => subparticle instanceof parser)
16735 }
16736 getAncestorByParser(parser) {
16737 if (this instanceof parser) return this
16738 if (this.isRoot()) return undefined

Calls 1

filterMethod · 0.95

Tested by

no test coverage detected