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

Function assertArg

OpenReservation/wwwroot/Scripts/angular.js:1805–1810  ·  view source on GitHub ↗

* throw error if the argument is falsy.

(arg, name, reason)

Source from the content-addressed store, hash-verified

1803 * throw error if the argument is falsy.
1804 */
1805 function assertArg(arg, name, reason) {
1806 if (!arg) {
1807 throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
1808 }
1809 return arg;
1810 }
1811
1812 function assertArgFn(arg, name, acceptArrayAnnotation) {
1813 if (acceptArrayAnnotation && isArray(arg)) {

Callers 4

assertArgFnFunction · 0.85
loadModulesFunction · 0.85
$CompileProviderFunction · 0.85
compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected