1 var baseMatches = require('./_baseMatches'),
2 baseMatchesProperty = require('./_baseMatchesProperty'),
3 identity = require('./identity'),
4 isArray = require('./isArray'),
5 property = require('./property');
8 * The base implementation of `_.iteratee`.
11 * @param {*} [value=_.identity] The value to convert to an iteratee.
12 * @returns {Function} Returns the iteratee.
14 function baseIteratee(value) {
15 var type = typeof value;
16 if (type == 'function') {
22 if (type == 'object') {
24 ? baseMatchesProperty(value[0], value[1])
27 return property(value);
30 module.exports = baseIteratee;