Takaro - v0.4.11
    Preparing search index...

    Function sortedLastIndexOf

    • This method is like _.lastIndexOf except that it performs a binary search on a sorted array.

      Type Parameters

      • T

      Parameters

      • array: List<T> | null | undefined

        The array to search.

      • value: T

        The value to search for.

      Returns number

      Returns the index of the matched value, else -1.

      _.sortedLastIndexOf([1, 1, 2, 2], 2);
      // => 3