()
| 80 | } |
| 81 | |
| 82 | getPathToRoot(){ |
| 83 | const path = []; |
| 84 | let current = this; |
| 85 | while(current){ |
| 86 | path.push(current); |
| 87 | current = current.parent; |
| 88 | } |
| 89 | return path; |
| 90 | } |
| 91 | |
| 92 | getPathFromRoot(){ |
| 93 | return this.getPathToRoot().reverse(); |
no outgoing calls
no test coverage detected