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

Method toComparison

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

Source from the content-addressed store, hash-verified

15810 return clone
15811 }
15812 toComparison(particle) {
15813 const particleBreakSymbol = "\n"
15814 const lines = particle.toString().split(particleBreakSymbol)
15815 return new Particle(
15816 this.toString()
15817 .split(particleBreakSymbol)
15818 .map((line, index) => (lines[index] === line ? "" : "x"))
15819 .join(particleBreakSymbol)
15820 )
15821 }
15822 toBraid(particlesOrStrings) {
15823 particlesOrStrings.unshift(this)
15824 const particleDelimiter = this.particleBreakSymbol

Callers

nothing calls this directly

Calls 4

toStringMethod · 0.95
splitMethod · 0.80
mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected