(element: string)
| 82 | } |
| 83 | |
| 84 | function getTreeElement(element: string): any { |
| 85 | let parent = tree; |
| 86 | for (let i = 0; i < element.length; i++) { |
| 87 | parent = parent[element.substring(0, i + 1)]; |
| 88 | if (!parent) { |
| 89 | return null; |
| 90 | } |
| 91 | } |
| 92 | return parent; |
| 93 | } |
| 94 | |
| 95 | function getNode(key: string): { key: string } { |
| 96 | if (!nodes[key]) { |
no outgoing calls
no test coverage detected