判断是不是函数
1. fun1 instanceOf Function
2. fun1.__proto__
== Function.prototype
3. typeof
4. Object.prototype.toString.call() =>// ‘[object Function]’
5. constructor
判断是不是数组
1. arr1 instanceOf Array
2. arr1.__proto__
==Array.prototype
3. Array.isArray(最好用的)
4. Object.prototype.toString.call() =>//’[object Array]’
5. constructor
关于判断方法更详细介绍看:js类型判断