js_bintrees icon indicating copy to clipboard operation
js_bintrees copied to clipboard

Add support for updating data on duplicate

Open darwayne opened this issue 6 years ago • 0 comments

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.

darwayne avatar Aug 05 '18 12:08 darwayne