function something(){
return "ssss";
}
typeof something
/*typeof something will console.log "function"*/
/*you can check if something is a function then do this by the follow code*/
if (typeof something ==="function")
{
console.log("something is a function")
}