MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / assertArg

Function assertArg

lib/test/angular/1.5.0/angular.js:1823–1828  ·  view source on GitHub ↗

* throw error if the argument is falsy.

(arg, name, reason)

Source from the content-addressed store, hash-verified

1821 * throw error if the argument is falsy.
1822 */
1823function assertArg(arg, name, reason) {
1824 if (!arg) {
1825 throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
1826 }
1827 return arg;
1828}
1829
1830function assertArgFn(arg, name, acceptArrayAnnotation) {
1831 if (acceptArrayAnnotation && isArray(arg)) {

Callers 4

assertArgFnFunction · 0.70
loadModulesFunction · 0.70
$CompileProviderFunction · 0.70
compileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected