* throw error if the argument is falsy.
(arg, name, reason)
| 1354 | * throw error if the argument is falsy. |
| 1355 | */ |
| 1356 | function assertArg(arg, name, reason) { |
| 1357 | if (!arg) { |
| 1358 | throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required")); |
| 1359 | } |
| 1360 | return arg; |
| 1361 | } |
| 1362 | |
| 1363 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1364 | if (acceptArrayAnnotation && isArray(arg)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…