(arg, name, acceptArrayAnnotation)
| 1567 | } |
| 1568 | |
| 1569 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1570 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1571 | arg = arg[arg.length - 1]; |
| 1572 | } |
| 1573 | |
| 1574 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1575 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1576 | return arg; |
| 1577 | } |
| 1578 | |
| 1579 | /** |
| 1580 | * throw error if the name given is hasOwnProperty |
no test coverage detected