Verifique se a função JavaScript
variableToCheck instanceof Function
Greenhorizon75
variableToCheck instanceof Function
if (typeof v === 'function') {
// do something
}