Node.JS module that implements an optimized binary search over a given array of objects