$ npm install binary-search-asyncadapted from darkskyapp's binary-search
var search = require('binary-search-async')
search(function get (i, cb) {
asyncLookup(i, cb)
}, target, compare, lo, hi, cb)
All arguments are mandatory. this assumes you are using integer indexes.
note: hi is the highest index, not the length! highest index is length - 1!
To the extent possible by law, The Dark Sky Company, LLC has waived all copyright and related or neighboring rights to this library.