(value, context, argCount)
| 85 | // to each element in a collection, returning the desired result — either |
| 86 | // identity, an arbitrary callback, a property matcher, or a property accessor. |
| 87 | var cb = function(value, context, argCount) { |
| 88 | if (value == null) return _.identity; |
| 89 | if (_.isFunction(value)) return optimizeCb(value, context, argCount); |
| 90 | if (_.isObject(value)) return _.matcher(value); |
| 91 | return _.property(value); |
| 92 | }; |
| 93 | _.iteratee = function(value, context) { |
| 94 | return cb(value, context, Infinity); |
| 95 | }; |
no test coverage detected