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

    Type Parameters

    • T

    Parameters

    • collection: T[]

      The collection to iterate over.

    • Optionaliteratee: ArrayIterator<T, any>

      The function called per iteration.

    Returns T[]

    _.eachRight

  • Parameters

    • collection: string
    • Optionaliteratee: StringIterator<any>

    Returns string

    _.forEachRight

  • Type Parameters

    • T

    Parameters

    • collection: List<T>
    • Optionaliteratee: ListIterator<T, any>

    Returns List<T>

    _.forEachRight

  • Type Parameters

    • T extends object

    Parameters

    • collection: T
    • Optionaliteratee: ObjectIterator<T, any>

    Returns T

    _.forEachRight

  • Type Parameters

    • T
    • TArray extends undefined | null | T[]

    Parameters

    • collection: TArray & (undefined | null | T[])
    • Optionaliteratee: ArrayIterator<T, any>

    Returns TArray

    _.forEachRight

  • Type Parameters

    • TString extends undefined | null | string

    Parameters

    • collection: TString
    • Optionaliteratee: StringIterator<any>

    Returns TString

    _.forEachRight

  • Type Parameters

    • T
    • TList extends undefined | null | List<T>

    Parameters

    • collection: TList & (undefined | null | List<T>)
    • Optionaliteratee: ListIterator<T, any>

    Returns TList

    _.forEachRight

  • Type Parameters

    • T extends object

    Parameters

    • collection: undefined | null | T
    • Optionaliteratee: ObjectIterator<T, any>

    Returns undefined | null | T

    _.forEachRight