Open akloeber opened 8 years ago
The return value of BinarySearchTree.put() differs depending on the state of the tree and is not documented.
BinarySearchTree.put()
In case of the first insertion the tree instance is returned whereas for subsequent insertions a structure like this is returned:
{ put: [Function], node: [Object] }
The return value of
BinarySearchTree.put()
differs depending on the state of the tree and is not documented.In case of the first insertion the tree instance is returned whereas for subsequent insertions a structure like this is returned: