1 var eq = require('./eq'),
2 isArrayLike = require('./isArrayLike'),
3 isIndex = require('./_isIndex'),
4 isObject = require('./isObject');
7 * Checks if the given arguments are from an iteratee call.
10 * @param {*} value The potential iteratee value argument.
11 * @param {*} index The potential iteratee index or key argument.
12 * @param {*} object The potential iteratee object argument.
13 * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
15 function isIterateeCall(value, index, object) {
16 if (!isObject(object)) {
19 var type = typeof index;
21 ? (isArrayLike(object) && isIndex(index, object.length))
22 : (type == 'string' && index in object)) {
23 return eq(object[index], value);
28 module.exports = isIterateeCall;