how to use binary search

callbackを経由して計算。冗長な探索なし。

binary search

1. {number}.toBinarySearchIndex({length},{callback})