Periksa apakah fungsi javascript
variableToCheck instanceof Function
Greenhorizon75
variableToCheck instanceof Function
if (typeof v === 'function') {
// do something
}