Function forEachRight

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

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 4,524 bytes
    • Micro-dash: 245 bytes

    Type Parameters

    • T

    Parameters

    • array: undefined | readonly T[]
    • iteratee: ArrayIteratee<T, boolean | void>

    Returns T[]

  • Type Parameters

    • T

    Parameters

    • object: undefined | T
    • iteratee: ObjectIteratee<T, boolean | void>

    Returns T