Function eachRight

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

    Type Parameters

    • T

    Parameters

    • array: T[]
    • iteratee: ArrayIterator<T, unknown>

      The function invoked per iteration.

    Returns T[]

    Returns collection.

    2.0.0

    eachRight

    forEach, forIn, forInRight, forOwn, forOwnRight

    forEachRight([1, 2], value => console.log(value))
    // => Logs `2` then `1`.