Compruebe si la función JavaScript
variableToCheck instanceof Function
Greenhorizon75
variableToCheck instanceof Function
if (typeof v === 'function') {
// do something
}