• This method is like _.find except that it iterates over elements of a collection from right to left.

    Type Parameters

    • T
    • S

    Parameters

    • collection: undefined | null | List<T>

      Searches for a value in this list.

    • predicate: ListIteratorTypeGuard<T, S>

      The function called per iteration.

    • OptionalfromIndex: number

      The index to search from.

    Returns undefined | S

    The found element, else undefined.

  • Type Parameters

    • T

    Parameters

    • collection: undefined | null | List<T>
    • Optionalpredicate: ListIterateeCustom<T, boolean>
    • OptionalfromIndex: number

    Returns undefined | T

    _.findLast

  • Type Parameters

    • T extends object
    • S

    Parameters

    • collection: undefined | null | T
    • predicate: ObjectIteratorTypeGuard<T, S>
    • OptionalfromIndex: number

    Returns undefined | S

    _.findLast

  • Type Parameters

    • T extends object

    Parameters

    • collection: undefined | null | T
    • Optionalpredicate: ObjectIterateeCustom<T, boolean>
    • OptionalfromIndex: number

    Returns undefined | T[keyof T]

    _.findLast