* throw error if the argument is falsy.
(arg, name, reason)
| 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)) { |
no outgoing calls
no test coverage detected