(arg, name, acceptArrayAnnotation)
| 1773 | } |
| 1774 | |
| 1775 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1776 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1777 | arg = arg[arg.length - 1]; |
| 1778 | } |
| 1779 | |
| 1780 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1781 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1782 | return arg; |
| 1783 | } |
| 1784 | |
| 1785 | /** |
| 1786 | * throw error if the name given is hasOwnProperty |
no test coverage detected