MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / forIn

Function forIn

MathBox/mathbox-bundle.js:37151–37160  ·  view source on GitHub ↗
(collection, callback, thisArg)

Source from the content-addressed store, hash-verified

37149 * // => logs 'x', 'y', and 'move' (property order is not guaranteed across environments)
37150 */
37151 var forIn = function(collection, callback, thisArg) {
37152 var index, iterable = collection, result = iterable;
37153 if (!iterable) return result;
37154 if (!objectTypes[typeof iterable]) return result;
37155 callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
37156 for (index in iterable) {
37157 if (callback(iterable[index], index, collection) === false) return result;
37158 }
37159 return result
37160 };
37161
37162 /**
37163 * This method is like `_.forIn` except that it iterates over elements

Callers 6

baseIsEqualFunction · 0.85
shimIsPlainObjectFunction · 0.85
forInRightFunction · 0.85
functionsFunction · 0.85
omitFunction · 0.85
pickFunction · 0.85

Calls 2

baseCreateCallbackFunction · 0.85
callbackFunction · 0.70

Tested by

no test coverage detected