(arg, name, acceptArrayAnnotation)
| 1512 | } |
| 1513 | |
| 1514 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1515 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1516 | arg = arg[arg.length - 1]; |
| 1517 | } |
| 1518 | |
| 1519 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1520 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1521 | return arg; |
| 1522 | } |
| 1523 | |
| 1524 | /** |
| 1525 | * throw error if the name given is hasOwnProperty |
no test coverage detected