* Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `tru
(value, index, object)
| 21914 | * else `false`. |
| 21915 | */ |
| 21916 | function isIterateeCall(value, index, object) { |
| 21917 | if (!isObject(object)) { |
| 21918 | return false; |
| 21919 | } |
| 21920 | var type = typeof index === 'undefined' ? 'undefined' : _typeof(index); |
| 21921 | if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) { |
| 21922 | return eq(object[index], value); |
| 21923 | } |
| 21924 | return false; |
| 21925 | } |
| 21926 | |
| 21927 | module.exports = isIterateeCall; |
| 21928 |
no test coverage detected