baseEachRight.js 525 B

123456789101112131415
  1. var baseForOwnRight = require('./baseForOwnRight'),
  2. createBaseEach = require('./createBaseEach');
  3. /**
  4. * The base implementation of `_.forEachRight` without support for callback
  5. * shorthands and `this` binding.
  6. *
  7. * @private
  8. * @param {Array|Object|string} collection The collection to iterate over.
  9. * @param {Function} iteratee The function invoked per iteration.
  10. * @returns {Array|Object|string} Returns `collection`.
  11. */
  12. var baseEachRight = createBaseEach(baseForOwnRight, true);
  13. module.exports = baseEachRight;