| 758 | // element in a collection, returning the desired result — either `_.identity`, |
| 759 | // an arbitrary callback, a property matcher, or a property accessor. |
| 760 | function baseIteratee(value, context, argCount) { |
| 761 | if (value == null) return identity; |
| 762 | if (isFunction$1(value)) return optimizeCb(value, context, argCount); |
| 763 | if (isObject(value) && !isArray(value)) return matcher(value); |
| 764 | return property(value); |
| 765 | } |
| 766 | |
| 767 | // External wrapper for our callback generator. Users may customize |
| 768 | // `_.iteratee` if they want additional predicate/iteratee shorthand styles. |