MCPcopy Create free account
hub / github.com/apache/cloudstack / assertArgFn

Function assertArgFn

tools/ngui/static/js/lib/angular.js:1044–1052  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

1042}
1043
1044function assertArgFn(arg, name, acceptArrayAnnotation) {
1045 if (acceptArrayAnnotation && isArray(arg)) {
1046 arg = arg[arg.length - 1];
1047 }
1048
1049 assertArg(isFunction(arg), name, 'not a function, got ' +
1050 (arg && typeof arg == 'object' ? arg.constructor.name || 'Object' : typeof arg));
1051 return arg;
1052}
1053
1054/**
1055 * @ngdoc interface

Callers 4

annotateFunction · 0.85
loadModulesFunction · 0.85
$ControllerProviderFunction · 0.85
compileToFnFunction · 0.85

Calls 3

isArrayFunction · 0.85
assertArgFunction · 0.85
isFunctionFunction · 0.85

Tested by

no test coverage detected