MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / cb

Function cb

public/javascripts/underscore.js:87–92  ·  view source on GitHub ↗
(value, context, argCount)

Source from the content-addressed store, hash-verified

85 // to each element in a collection, returning the desired result — either
86 // identity, an arbitrary callback, a property matcher, or a property accessor.
87 var cb = function(value, context, argCount) {
88 if (value == null) return _.identity;
89 if (_.isFunction(value)) return optimizeCb(value, context, argCount);
90 if (_.isObject(value)) return _.matcher(value);
91 return _.property(value);
92 };
93 _.iteratee = function(value, context) {
94 return cb(value, context, Infinity);
95 };

Callers 12

eachWithIndexFunction · 0.70
underscore.jsFile · 0.70
groupFunction · 0.70
newContextFunction · 0.70
_rejectFunction · 0.70
doneFunction · 0.70
iterateeFunction · 0.70
_concatFunction · 0.70
async.jsFile · 0.70
redis.jsFile · 0.50
returnPythonCallerFunction · 0.50

Calls 1

optimizeCbFunction · 0.70

Tested by

no test coverage detected