MCPcopy
hub / github.com/angular-ui/ui-grid / assertArgFn

Function assertArgFn

lib/test/angular/1.7.0/angular.js:2062–2070  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

2060}
2061
2062function assertArgFn(arg, name, acceptArrayAnnotation) {
2063 if (acceptArrayAnnotation && isArray(arg)) {
2064 arg = arg[arg.length - 1];
2065 }
2066
2067 assertArg(isFunction(arg), name, 'not a function, got ' +
2068 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
2069 return arg;
2070}
2071
2072/**
2073 * throw error if the name given is hasOwnProperty

Callers 3

annotateFunction · 0.70
loadModulesFunction · 0.70
$ControllerProviderFunction · 0.70

Calls 3

isArrayFunction · 0.70
assertArgFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected