equalRange

source

equalRange<T>(array: ArrayLike<T>, compare: Function): Object | undefinedsource

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

Returns a pair containing the indexes of the first and last items of an array for which compare returns a value equal to zero, or undefined if no matching elements are found.