(arg, name, acceptArrayAnnotation)
| 2060 | } |
| 2061 | |
| 2062 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 2063 | if (acceptArrayAnnotation && isArray(arg)) { |
| 2064 | arg = arg[arg.length - 1]; |
| 2065 | } |
| 2066 | |
| 2067 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 2068 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 2069 | return arg; |
| 2070 | } |
| 2071 | |
| 2072 | /** |
| 2073 | * throw error if the name given is hasOwnProperty |
no test coverage detected