(arg, name, acceptArrayAnnotation)
| 2120 | } |
| 2121 | |
| 2122 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 2123 | if (acceptArrayAnnotation && isArray(arg)) { |
| 2124 | arg = arg[arg.length - 1]; |
| 2125 | } |
| 2126 | |
| 2127 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 2128 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 2129 | return arg; |
| 2130 | } |
| 2131 | |
| 2132 | /** |
| 2133 | * throw error if the name given is hasOwnProperty |
no test coverage detected