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

Method toBraid

external/.scrollLibs.js:15822–15830  ·  view source on GitHub ↗
(particlesOrStrings)

Source from the content-addressed store, hash-verified

15820 )
15821 }
15822 toBraid(particlesOrStrings) {
15823 particlesOrStrings.unshift(this)
15824 const particleDelimiter = this.particleBreakSymbol
15825 return new Particle(
15826 Utils.interweave(particlesOrStrings.map(particle => particle.toString().split(particleDelimiter)))
15827 .map(line => (line === undefined ? "" : line))
15828 .join(particleDelimiter)
15829 )
15830 }
15831 getSlice(startIndexInclusive, stopIndexExclusive) {
15832 return new Particle(
15833 this.slice(startIndexInclusive, stopIndexExclusive)

Callers

nothing calls this directly

Calls 5

mapMethod · 0.80
interweaveMethod · 0.80
splitMethod · 0.80
joinMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected