avl icon indicating copy to clipboard operation
avl copied to clipboard

remove() returns a key, not a node

Open SoyYoRafa opened this issue 3 years ago • 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.

SoyYoRafa avatar Aug 18 '21 02:08 SoyYoRafa