(arg, name, acceptArrayAnnotation)
| 1828 | } |
| 1829 | |
| 1830 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1831 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1832 | arg = arg[arg.length - 1]; |
| 1833 | } |
| 1834 | |
| 1835 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1836 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1837 | return arg; |
| 1838 | } |
| 1839 | |
| 1840 | /** |
| 1841 | * throw error if the name given is hasOwnProperty |
no test coverage detected