(arg, name, acceptArrayAnnotation)
| 2092 | } |
| 2093 | |
| 2094 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 2095 | if (acceptArrayAnnotation && isArray(arg)) { |
| 2096 | arg = arg[arg.length - 1]; |
| 2097 | } |
| 2098 | |
| 2099 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 2100 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 2101 | return arg; |
| 2102 | } |
| 2103 | |
| 2104 | /** |
| 2105 | * throw error if the name given is hasOwnProperty |
no test coverage detected