(arg, name, acceptArrayAnnotation)
| 1835 | } |
| 1836 | |
| 1837 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1838 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1839 | arg = arg[arg.length - 1]; |
| 1840 | } |
| 1841 | |
| 1842 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1843 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1844 | return arg; |
| 1845 | } |
| 1846 | |
| 1847 | /** |
| 1848 | * throw error if the name given is hasOwnProperty |
no test coverage detected