lib/service/SourceCodeStore.js
function sortedLastIndexForNum(array, value) {
    let low = 0
    let high = array == null ? low : array.length

    while (low < high) {
        const mid = (low + high) >>> 1
        const computed = array[mid]
        if (computed <= value) {
            low = mid + 1
        } else {
            high = mid
        }
    }
    return high
}
function sortedLastIndexForNum(array, value) {
    let low = 0
    let high = array == null ? low : array.length

    while (low < high) {
        const mid = (low + high) >>> 1
        const computed = array[mid]
        if (computed <= value) {
            low = mid + 1
        } else {
            high = mid
        }
    }
    return high
}
function sortedLastIndexForNum ( array , value ) { let low = 0 let high = array == null ? low : array . length while ( low < high ) { const mid = ( low + high ) >>> 1 const computed = array [ mid ] if ( computed <= value ) { low = mid + 1 } else { high = mid } } return high }
_.sortedLastIndex

@param {Array} array The sorted array to inspect.
@param {*} value The value to evaluate.
@returns {number} Returns the index at which `value` should be inserted
into `array`.
_ . sortedLastIndex