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