MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / assertArgFn

Function assertArgFn

code/songhop/www/lib/angular/angular.js:1569–1577  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

1567}
1568
1569function assertArgFn(arg, name, acceptArrayAnnotation) {
1570 if (acceptArrayAnnotation && isArray(arg)) {
1571 arg = arg[arg.length - 1];
1572 }
1573
1574 assertArg(isFunction(arg), name, 'not a function, got ' +
1575 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
1576 return arg;
1577}
1578
1579/**
1580 * throw error if the name given is hasOwnProperty

Callers 3

annotateFunction · 0.70
loadModulesFunction · 0.70
$ControllerProviderFunction · 0.70

Calls 2

assertArgFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected