js_bintrees
js_bintrees copied to clipboard
Add support for updating data on duplicate
Hey guys,
Thanks a ton for providing this awesome library.
What are your thoughts on adding an extra function that will allow the data to be updated instead of ignored?
I'm thinking the function name could be something like upsert
.. that way if you always want to update on insert you won't have to remove then re-insert to update an object stored in the tree.