(arg, name, acceptArrayAnnotation)
| 1361 | } |
| 1362 | |
| 1363 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1364 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1365 | arg = arg[arg.length - 1]; |
| 1366 | } |
| 1367 | |
| 1368 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1369 | (arg && typeof arg == 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1370 | return arg; |
| 1371 | } |
| 1372 | |
| 1373 | /** |
| 1374 | * throw error if the name given is hasOwnProperty |
no test coverage detected
searching dependent graphs…