mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Remove unused baseForIn.
This commit is contained in:
21
lodash.js
21
lodash.js
@@ -2665,10 +2665,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `baseForIn` and `baseForOwn` which iterates
|
* The base implementation of `baseForOwn` which iterates over `object`
|
||||||
* over `object` properties returned by `keysFunc` invoking `iteratee` for
|
* properties returned by `keysFunc` invoking `iteratee` for each property.
|
||||||
* each property. Iteratee functions may exit iteration early by explicitly
|
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
||||||
* returning `false`.
|
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to iterate over.
|
* @param {Object} object The object to iterate over.
|
||||||
@@ -2690,18 +2689,6 @@
|
|||||||
*/
|
*/
|
||||||
var baseForRight = createBaseFor(true);
|
var baseForRight = createBaseFor(true);
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.forIn` 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 baseForIn(object, iteratee) {
|
|
||||||
return object == null ? object : baseFor(object, iteratee, keysIn);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
||||||
*
|
*
|
||||||
@@ -4177,7 +4164,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a base function for methods like `_.forIn`.
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||||
|
|||||||
Reference in New Issue
Block a user