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

Function assertArgFn

lib/test/angular/1.8.0/angular.js:2122–2130  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

2120}
2121
2122function assertArgFn(arg, name, acceptArrayAnnotation) {
2123 if (acceptArrayAnnotation && isArray(arg)) {
2124 arg = arg[arg.length - 1];
2125 }
2126
2127 assertArg(isFunction(arg), name, 'not a function, got ' +
2128 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
2129 return arg;
2130}
2131
2132/**
2133 * 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