(arg, name, acceptArrayAnnotation)
| 2099 | } |
| 2100 | |
| 2101 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 2102 | if (acceptArrayAnnotation && isArray(arg)) { |
| 2103 | arg = arg[arg.length - 1]; |
| 2104 | } |
| 2105 | |
| 2106 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 2107 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 2108 | return arg; |
| 2109 | } |
| 2110 | |
| 2111 | /** |
| 2112 | * throw error if the name given is hasOwnProperty |
no test coverage detected