* Gets the appropriate "callback" function. If the `_.callback` method is * customized this function returns the custom method, otherwise it returns * the `baseCallback` function. If arguments are provided the chosen function * is invoked with them and its result is returned. *
(func, thisArg, argCount)
| 5404 | * @returns {Function} Returns the chosen function or its result. |
| 5405 | */ |
| 5406 | function getCallback(func, thisArg, argCount) { |
| 5407 | var result = lodash.callback || callback; |
| 5408 | result = result === callback ? baseCallback : result; |
| 5409 | return argCount ? result(func, thisArg, argCount) : result; |
| 5410 | } |
| 5411 | |
| 5412 | /** |
| 5413 | * Gets metadata for `func`. |
no test coverage detected