Function forEachRight

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

    Example

    forEachRight([1, 2], (value) => {
    console.log(value)
    })
    // Logs `2` then `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