MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / assertArgFn

Function assertArgFn

OpenReservation/wwwroot/Scripts/angular.js:1812–1822  ·  view source on GitHub ↗
(arg, name, acceptArrayAnnotation)

Source from the content-addressed store, hash-verified

1810 }
1811
1812 function assertArgFn(arg, name, acceptArrayAnnotation) {
1813 if (acceptArrayAnnotation && isArray(arg)) {
1814 arg = arg[arg.length - 1];
1815 }
1816
1817 assertArg(isFunction(arg),
1818 name,
1819 'not a function, got ' +
1820 (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
1821 return arg;
1822 }
1823
1824 /**
1825 * 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