(particle)
| 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 |