| 735 | // element in a collection, returning the desired result — either `_.identity`, |
| 736 | // an arbitrary callback, a property matcher, or a property accessor. |
| 737 | function baseIteratee(value, context, argCount) { |
| 738 | if (value == null) return identity; |
| 739 | if (isFunction$1(value)) return optimizeCb(value, context, argCount); |
| 740 | if (isObject(value) && !isArray(value)) return matcher(value); |
| 741 | return property(value); |
| 742 | } |
| 743 | |
| 744 | // External wrapper for our callback generator. Users may customize |
| 745 | // `_.iteratee` if they want additional predicate/iteratee shorthand styles. |