(arg, name, acceptArrayAnnotation)
| 1593 | } |
| 1594 | |
| 1595 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1596 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1597 | arg = arg[arg.length - 1]; |
| 1598 | } |
| 1599 | |
| 1600 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1601 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1602 | return arg; |
| 1603 | } |
| 1604 | |
| 1605 | /** |
| 1606 | * throw error if the name given is hasOwnProperty |
no test coverage detected