(arg, name, acceptArrayAnnotation)
| 1613 | } |
| 1614 | |
| 1615 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1616 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1617 | arg = arg[arg.length - 1]; |
| 1618 | } |
| 1619 | |
| 1620 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1621 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1622 | return arg; |
| 1623 | } |
| 1624 | |
| 1625 | /** |
| 1626 | * throw error if the name given is hasOwnProperty |
no test coverage detected