MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / baseIteratee

Function baseIteratee

docs/_static/underscore-1.13.1.js:737–742  ·  view source on GitHub ↗
(value, context, argCount)

Source from the content-addressed store, hash-verified

735 // element in a collection, returning the desired result — either `_.identity`,
736 // an arbitrary callback, a property matcher, or a property accessor.
737 function baseIteratee(value, context, argCount) {
738 if (value == null) return identity;
739 if (isFunction$1(value)) return optimizeCb(value, context, argCount);
740 if (isObject(value) && !isArray(value)) return matcher(value);
741 return property(value);
742 }
743
744 // External wrapper for our callback generator. Users may customize
745 // `_.iteratee` if they want additional predicate/iteratee shorthand styles.

Callers 2

iterateeFunction · 0.85
cbFunction · 0.85

Calls 4

optimizeCbFunction · 0.85
isObjectFunction · 0.85
matcherFunction · 0.85
propertyFunction · 0.85

Tested by

no test coverage detected