* Creates a function for `_.forIn` or `_.forInRight`. * * @private * @param {Function} objectFunc The function to iterate over an object. * @returns {Function} Returns the new each function.
(objectFunc)
| 4909 | * @returns {Function} Returns the new each function. |
| 4910 | */ |
| 4911 | function createForIn(objectFunc) { |
| 4912 | return function(object, iteratee, thisArg) { |
| 4913 | if (typeof iteratee != 'function' || thisArg !== undefined) { |
| 4914 | iteratee = bindCallback(iteratee, thisArg, 3); |
| 4915 | } |
| 4916 | return objectFunc(object, iteratee, keysIn); |
| 4917 | }; |
| 4918 | } |
| 4919 | |
| 4920 | /** |
| 4921 | * Creates a function for `_.forOwn` or `_.forOwnRight`. |
no test coverage detected