mirror of https://github.com/lukechilds/node.git
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.
17 lines
475 B
17 lines
475 B
9 years ago
|
var baseFor = require('./_baseFor'),
|
||
|
keysIn = require('./keysIn');
|
||
10 years ago
|
|
||
|
/**
|
||
9 years ago
|
* The base implementation of `_.forIn` without support for iteratee shorthands.
|
||
10 years ago
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function baseForIn(object, iteratee) {
|
||
9 years ago
|
return object == null ? object : baseFor(object, iteratee, keysIn);
|
||
10 years ago
|
}
|
||
|
|
||
|
module.exports = baseForIn;
|