(arg, name, acceptArrayAnnotation)
| 1799 | } |
| 1800 | |
| 1801 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1802 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1803 | arg = arg[arg.length - 1]; |
| 1804 | } |
| 1805 | |
| 1806 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1807 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1808 | return arg; |
| 1809 | } |
| 1810 | |
| 1811 | /** |
| 1812 | * throw error if the name given is hasOwnProperty |
no test coverage detected