mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Remove baseIteratee and castFunction.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import baseForOwnRight from './_baseForOwnRight.js';
|
||||
import castFunction from './_castFunction.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.forOwn` except that it iterates over properties of
|
||||
@@ -10,7 +9,7 @@ import castFunction from './_castFunction.js';
|
||||
* @since 2.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Object} Returns `object`.
|
||||
* @see _.forOwn
|
||||
* @example
|
||||
@@ -28,7 +27,7 @@ import castFunction from './_castFunction.js';
|
||||
* // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
|
||||
*/
|
||||
function forOwnRight(object, iteratee) {
|
||||
return object && baseForOwnRight(object, castFunction(iteratee));
|
||||
return object && baseForOwnRight(object, iteratee);
|
||||
}
|
||||
|
||||
export default forOwnRight;
|
||||
|
||||
Reference in New Issue
Block a user