how to use binary search

calculate via callback. no redundant search.

binary search

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