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

Function assertArg

lib/test/angular/1.4.3/angular.js:1768–1773  ·  view source on GitHub ↗

* throw error if the argument is falsy.

(arg, name, reason)

Source from the content-addressed store, hash-verified

1766 * throw error if the argument is falsy.
1767 */
1768function assertArg(arg, name, reason) {
1769 if (!arg) {
1770 throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
1771 }
1772 return arg;
1773}
1774
1775function assertArgFn(arg, name, acceptArrayAnnotation) {
1776 if (acceptArrayAnnotation && isArray(arg)) {

Callers 3

assertArgFnFunction · 0.70
$CompileProviderFunction · 0.70
compileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected