baseFor.js 608 B

1234567891011121314151617
  1. var createBaseFor = require('./createBaseFor');
  2. /**
  3. * The base implementation of `baseForIn` and `baseForOwn` which iterates
  4. * over `object` properties returned by `keysFunc` invoking `iteratee` for
  5. * each property. Iteratee functions may exit iteration early by explicitly
  6. * returning `false`.
  7. *
  8. * @private
  9. * @param {Object} object The object to iterate over.
  10. * @param {Function} iteratee The function invoked per iteration.
  11. * @param {Function} keysFunc The function to get the keys of `object`.
  12. * @returns {Object} Returns `object`.
  13. */
  14. var baseFor = createBaseFor();
  15. module.exports = baseFor;