interval-tree2
interval-tree2 copied to clipboard
Doesn't allow minimal intervals
When trying to add an interval whose start and end points coincide, an error is thrown. However, since both start and end are inclusive, that means the minimal length for an interval is 2, not 1. Conceptually, even intervals of length zero should be possible; however, since those can never match, they can be safely skipped. OTOH, intervals of length 1 are practically useful and should be supported IMHO.
+1
Any follow up on this @shinout ?
for the time being, if people need this fix, they can install from https://github.com/tnrich/interval-tree2
npm i -S tnrich/interval-tree2
@tnrich not working mate. any solution?