Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

_base-for-own

v4.17.11arrow_drop_down
v4.17.11
STATUS
Passing
DOWNLOADS
377
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
2 KB
1 contributor
Install _base-for-own as a package?
Copied
npm i @bit/lodash.lodash.internal._base-for-own
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
_baseForOwn.js
16 Lines(6 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import baseFor from './_baseFor.js';
import keys from './keys.js';

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function baseForOwn(object, iteratee) {
  return object && baseFor(object, iteratee, keys);
}

export default baseForOwn;