1 var arrayEachRight = require('../internal/arrayEachRight'),
2 baseEachRight = require('../internal/baseEachRight'),
3 createForEach = require('../internal/createForEach');
6 * This method is like `_.forEach` except that it iterates over elements of
7 * `collection` from right to left.
12 * @category Collection
13 * @param {Array|Object|string} collection The collection to iterate over.
14 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
15 * @param {*} [thisArg] The `this` binding of `iteratee`.
16 * @returns {Array|Object|string} Returns `collection`.
19 * _([1, 2]).forEachRight(function(n) {
22 * // => logs each value from right to left and returns the array
24 var forEachRight = createForEach(arrayEachRight, baseEachRight);
26 module.exports = forEachRight;