_baseEach.js 455 B

123456789101112131415
  1. var baseForOwn = require('./_baseForOwn'),
  2. createBaseEach = require('./_createBaseEach');
  3. /**
  4. * The base implementation of `_.forEach` without support for iteratee shorthands.
  5. *
  6. * @private
  7. * @param {Array|Object} collection The collection to iterate over.
  8. * @param {Function} iteratee The function invoked per iteration.
  9. * @returns {Array|Object} Returns `collection`.
  10. */
  11. var baseEach = createBaseEach(baseForOwn);
  12. module.exports = baseEach;