js判断一个对象是否是函数对象

使用typeof的值判断,若是为"function"则说明是函数函数

eg:code

if(typeof setName === "function"){
    console.log("我是一个函数");
}