MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / assertArgFn

Function assertArgFn

lib/test/angular/1.6.7/angular.js:2094–2102  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

2092}
2093
2094function assertArgFn(arg, name, acceptArrayAnnotation) {
2095 if (acceptArrayAnnotation && isArray(arg)) {
2096 arg = arg[arg.length - 1];
2097 }
2098
2099 assertArg(isFunction(arg), name, 'not a function, got ' +
2100 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
2101 return arg;
2102}
2103
2104/**
2105 * throw error if the name given is hasOwnProperty

Callers 3

annotateFunction · 0.70
loadModulesFunction · 0.70
$ControllerProviderFunction · 0.70

Calls 3

assertArgFunction · 0.70
isFunctionFunction · 0.70
isArrayFunction · 0.50

Tested by

no test coverage detected