Options
All
  • Public
  • Public/Protected
  • All
Menu

Module forEachRight

Index

References

Functions Collection

References

Renames and re-exports forEachRight

Collection Functions

  • forEachRight<T>(collection?: ArrayLike<T>, iteratee?: ArrayIteratee<T, void>): void
  • forEachRight<T>(collection?: PlainObject<T>, iteratee?: RecordIteratee<T, void>): void
  • This method is like forEach except that it iterates over elements of collection from right to left.

    since

    5.13.0

    alias

    eachRight

    see

    forEach, [[forIn]], [[forInRight]], forOwn, forOwnRight

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

    Type parameters

    • T

    Parameters

    • Optional collection: ArrayLike<T>

      The collection to iterate over.

    • Optional iteratee: ArrayIteratee<T, void>

      The function invoked per iteration.

    Returns void

    Returns collection.

  • Type parameters

    • T

    Parameters

    • Optional collection: PlainObject<T>
    • Optional iteratee: RecordIteratee<T, void>

    Returns void