()
| 15955 | return arr |
| 15956 | } |
| 15957 | _getLevels() { |
| 15958 | const levels = {} |
| 15959 | this.topDownArray.forEach(particle => { |
| 15960 | const level = particle._getIndentLevel() |
| 15961 | if (!levels[level]) levels[level] = [] |
| 15962 | levels[level].push(particle) |
| 15963 | }) |
| 15964 | return levels |
| 15965 | } |
| 15966 | _getSubparticlesArray() { |
| 15967 | if (!this._subparticles) this._subparticles = [] |
| 15968 | return this._subparticles |
no test coverage detected