upperBound

source

upperBound<T>(array: ArrayLike<T>, compare: Function): numbersource

Implementation of https://en.cppreference.com/w/cpp/algorithm/upper_bound

Returns the index of the last item in an array for which compare returns a value less than or equal to zero, or zero if no such element is found.