Javascript Data Type Checker Is Function

Description

Javascript Data Type Checker Is Function



// Checks to see if something is a function
Object.isFunction = function(obj) {
    return (typeof obj == 'function')
}

function a(){// w ww.j av a  2s .com

}
console.log(Object.isFunction(a));



PreviousNext

Related