avl
avl copied to clipboard
remove() returns a key, not a node
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.