MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getCallback

Function getCallback

lib/web/jshint.js:5406–5410  ·  view source on GitHub ↗

* Gets the appropriate "callback" function. If the `_.callback` method is * customized this function returns the custom method, otherwise it returns * the `baseCallback` function. If arguments are provided the chosen function * is invoked with them and its result is returned. *

(func, thisArg, argCount)

Source from the content-addressed store, hash-verified

5404 * @returns {Function} Returns the chosen function or its result.
5405 */
5406 function getCallback(func, thisArg, argCount) {
5407 var result = lodash.callback || callback;
5408 result = result === callback ? baseCallback : result;
5409 return argCount ? result(func, thisArg, argCount) : result;
5410 }
5411
5412 /**
5413 * Gets metadata for `func`.

Callers 15

baseSortByOrderFunction · 0.85
createAggregatorFunction · 0.85
createExtremumFunction · 0.85
createFindFunction · 0.85
createFindIndexFunction · 0.85
createFindKeyFunction · 0.85
createReduceFunction · 0.85
createSortedIndexFunction · 0.85
dropRightWhileFunction · 0.85
dropWhileFunction · 0.85
removeFunction · 0.85
takeRightWhileFunction · 0.85

Calls 1

resultFunction · 0.70

Tested by

no test coverage detected