| var baseFor = require('./_baseFor'), |
| castFunction = require('./_castFunction'), |
| keysIn = require('./keysIn'); |
| * Iterates over own and inherited enumerable string keyed properties of an |
| * object and invokes `iteratee` for each property. The iteratee is invoked |
| * with three arguments: (value, key, object). Iteratee functions may exit |
| * iteration early by explicitly returning `false`. |
| * @param {Object} object The object to iterate over. |
| * @param {Function} [iteratee=_.identity] The function invoked per iteration. |
| * @returns {Object} Returns `object`. |
| * _.forIn(new Foo, function(value, key) { |
| * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). |
| function forIn(object, iteratee) { |
| : baseFor(object, castFunction(iteratee), keysIn); |