_baseForOwn.js 454 B

12345678910111213141516
  1. import baseFor from './_baseFor.js';
  2. import keys from './keys.js';
  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. export default baseForOwn;