baseEach.js 489 B

123456789101112131415
  1. var baseForOwn = require('./baseForOwn'),
  2. createBaseEach = require('./createBaseEach');
  3. /**
  4. * The base implementation of `_.forEach` 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 baseEach = createBaseEach(baseForOwn);
  13. module.exports = baseEach;