MCPcopy
hub / github.com/teivah/100-go-mistakes / cb

Function cb

site/assets/javascripts/lunr/wordcut.js:4610–4615  ·  view source on GitHub ↗
(value, context, argCount)

Source from the content-addressed store, hash-verified

4608 // to each element in a collection, returning the desired result — either
4609 // identity, an arbitrary callback, a property matcher, or a property accessor.
4610 var cb = function(value, context, argCount) {
4611 if (value == null) return _.identity;
4612 if (_.isFunction(value)) return optimizeCb(value, context, argCount);
4613 if (_.isObject(value)) return _.matcher(value);
4614 return _.property(value);
4615 };
4616 _.iteratee = function(value, context) {
4617 return cb(value, context, Infinity);
4618 };

Callers 5

GlobFunction · 0.85
wordcut.jsFile · 0.85
lstatcb_Function · 0.85
groupFunction · 0.85

Calls 1

optimizeCbFunction · 0.85

Tested by

no test coverage detected