Skip to content

Commit 3228beb

Browse files
author
wanderer
committed
return node instead of just root
Signed-off-by: wanderer <mjbecze@gmail.com>
1 parent a3aed82 commit 3228beb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ module.exports = class RadixTree {
7474
}
7575

7676
const value = treeNode.getValue(root)
77+
const node = root['/']
7778

78-
return {value, root, parent, index}
79+
return {value, root, node, parent, index}
7980
}
8081

8182
/**

0 commit comments

Comments
 (0)