lib/Check If a Variable is of Function Type.js
// program to check if a variable is of function type
program to check if a variable is of function type
program to check if a variable is of function type
function testVariable(variable) {
    if(variable instanceof Function) {
        console.log('The variable is of function type');
    }
    else {
        console.log('The variable is not of function type');
    }
}
function testVariable ( variable ) { if ( variable instanceof Function ) { console . log ( 'The variable is of function type' ) ; } else { console . log ( 'The variable is not of function type' ) ; } }
program to check if a variable is of function type
program to check if a variable is of function type