MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / assertArgFn

Function assertArgFn

web/static/bower_components/angular/angular.js:1801–1809  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

1799}
1800
1801function assertArgFn(arg, name, acceptArrayAnnotation) {
1802 if (acceptArrayAnnotation && isArray(arg)) {
1803 arg = arg[arg.length - 1];
1804 }
1805
1806 assertArg(isFunction(arg), name, 'not a function, got ' +
1807 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
1808 return arg;
1809}
1810
1811/**
1812 * throw error if the name given is hasOwnProperty

Callers 4

annotateFunction · 0.85
loadModulesFunction · 0.85
$ControllerProviderFunction · 0.85
$httpFunction · 0.85

Calls 2

assertArgFunction · 0.85
isFunctionFunction · 0.85

Tested by

no test coverage detected