Function forEachRight

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

    Example

    forEachRight([1, 2], console.log)
    // 2
    // 1

    Returns

    Returns collection.

    See

    Type Parameters

    • T

    Parameters

    • collection: T[]

      The collection to iterate over.

    • fn: Iteratee<T, any, any>

      The function invoked per iteration.

    Returns void

  • Type Parameters

    • T

    Parameters

    • collection: Object
    • fn: Iteratee<T, any, any>

    Returns void

Generated using TypeDoc