You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
456 B

4 years ago
  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;