* Creates a function for `_.forOwn` or `_.forOwnRight`. * * @private * @param {Function} objectFunc The function to iterate over an object. * @returns {Function} Returns the new each function.
(objectFunc)
| 4925 | * @returns {Function} Returns the new each function. |
| 4926 | */ |
| 4927 | function createForOwn(objectFunc) { |
| 4928 | return function(object, iteratee, thisArg) { |
| 4929 | if (typeof iteratee != 'function' || thisArg !== undefined) { |
| 4930 | iteratee = bindCallback(iteratee, thisArg, 3); |
| 4931 | } |
| 4932 | return objectFunc(object, iteratee); |
| 4933 | }; |
| 4934 | } |
| 4935 | |
| 4936 | /** |
| 4937 | * Creates a function for `_.padLeft` or `_.padRight`. |
no test coverage detected