Closed rossj closed 5 years ago
This update fixes issue #5 when resolving full path names by allowing traversing to the root node. Previously, traversal would stop when j === 0 or j === dad[j], both of which are true for the root node.
j === 0
j === dad[j]
There's a small issue where if an element is its own parent, then the loop will not terminate. That will be fixed in a separate commit
This update fixes issue #5 when resolving full path names by allowing traversing to the root node. Previously, traversal would stop when
j === 0
orj === dad[j]
, both of which are true for the root node.