I was working with it and noticed that it creates clones of the key and value objects instead of just using the original objects. I was curious about what was the reason for this?
Asking because I ran into an issue in my code where IntervalTree had cloned a value and my code was expecting to get the same object back (not a clone).
Thanks for creating this package.
I was working with it and noticed that it creates clones of the key and value objects instead of just using the original objects. I was curious about what was the reason for this?
https://github.com/alexbol99/flatten-interval-tree/blob/f1293e5e1ab902e6a0c0ee8364434ad04cc48d18/src/classes/node.js#L81-L83
Asking because I ran into an issue in my code where
IntervalTree
had cloned a value and my code was expecting to get the same object back (not a clone).