Check if a variable is of function type

if (typeof v === 'function') {
    // do something
}

Leave a Comment