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

Function assertArgFn

lib/test/angular/1.4.3/angular.js:1775–1783  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

1773}
1774
1775function assertArgFn(arg, name, acceptArrayAnnotation) {
1776 if (acceptArrayAnnotation && isArray(arg)) {
1777 arg = arg[arg.length - 1];
1778 }
1779
1780 assertArg(isFunction(arg), name, 'not a function, got ' +
1781 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
1782 return arg;
1783}
1784
1785/**
1786 * 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