docs: function findHighIndexInSortedArray(ary, mapFn, loVal, hiVal) {
      var lo = loVal || 0;
      var hi = hiVal !== undefined ? hiVal : ary.length;
      while (lo < hi) {
        var mid = (lo + hi) >> 1;
        if (mapFn(ary[mid]) >= 0)
          lo = mid + 1;
        else
          hi = mid;
      }
      return hi;
    }