I needed a binary search algorithm to find scroll offsets in a virtualized list. There didn't seem to be a package implementing a binary search in Typescript, so I created this one. It has a bonus feature. If the value isn't found, it provides the nearest range of indices where the value would have been.