Vérifiez si la fonction javascript
variableToCheck instanceof Function
Greenhorizon75
variableToCheck instanceof Function
if (typeof v === 'function') {
// do something
}