w8r/avl

remove() returns a key, not a node

Opened this issue · 0 comments

Hi!

I noticed that AVLTree#remove returns a key, not a node. https://github.com/w8r/avl/blob/master/src/index.js#L566 returnValue is set to the key, never reassigned and simply returned.