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

Function assertArgFn

lib/test/angular/1.5.0/angular.js:1830–1838  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

1828}
1829
1830function assertArgFn(arg, name, acceptArrayAnnotation) {
1831 if (acceptArrayAnnotation && isArray(arg)) {
1832 arg = arg[arg.length - 1];
1833 }
1834
1835 assertArg(isFunction(arg), name, 'not a function, got ' +
1836 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
1837 return arg;
1838}
1839
1840/**
1841 * throw error if the name given is hasOwnProperty

Callers 4

annotateFunction · 0.70
loadModulesFunction · 0.70
$ControllerProviderFunction · 0.70
$httpFunction · 0.70

Calls 3

assertArgFunction · 0.70
isFunctionFunction · 0.70
isArrayFunction · 0.50

Tested by

no test coverage detected