MCPcopy Index your code
hub / github.com/deployd/deployd / isIterateeCall

Function isIterateeCall

test-app/public/sinon.js:16911–16923  ·  view source on GitHub ↗

* 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.

(value, index, object)

Source from the content-addressed store, hash-verified

16909 * else `false`.
16910 */
16911 function isIterateeCall(value, index, object) {
16912 if (!isObject(object)) {
16913 return false;
16914 }
16915 var type = typeof index;
16916 if (type == 'number'
16917 ? (isArrayLike(object) && isIndex(index, object.length))
16918 : (type == 'string' && index in object)
16919 ) {
16920 return eq(object[index], value);
16921 }
16922 return false;
16923 }
16924
16925 /**
16926 * Checks if `value` is a property name and not a property path.

Callers 13

createAssignerFunction · 0.85
createRangeFunction · 0.85
chunkFunction · 0.85
fillFunction · 0.85
sliceFunction · 0.85
everyFunction · 0.85
sampleSizeFunction · 0.85
someFunction · 0.85
sinon.jsFile · 0.85
randomFunction · 0.85
repeatFunction · 0.85
splitFunction · 0.85

Calls 4

isArrayLikeFunction · 0.85
isIndexFunction · 0.85
eqFunction · 0.85
isObjectFunction · 0.70

Tested by

no test coverage detected