_baseForOwn.js 456 B

12345678910111213141516
  1. var baseFor = require('./_baseFor'),
  2. keys = require('./keys');
  3. /**
  4. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  5. *
  6. * @private
  7. * @param {Object} object The object to iterate over.
  8. * @param {Function} iteratee The function invoked per iteration.
  9. * @returns {Object} Returns `object`.
  10. */
  11. function baseForOwn(object, iteratee) {
  12. return object && baseFor(object, iteratee, keys);
  13. }
  14. module.exports = baseForOwn;