# 判断变量类型
- typeof
 - instanceof
 - Object.prototype.toString().call()
 
# 判断数组的方法
- arr instanceof Array
 - Array.isArray(arr)
 - arr.constructor===Array
 - Object.prototype.toString().call(arr)==='[object Array]'
 - Object.getPrototypeOf(arr)===Array.prototype // 返回arr的原型
 - Array.prototype.isPrototypeOf(arr) //测试arr是否在另一个对象的原型链上
 
# 判断对象的方法
- instanceof
 - constructor
 - Object.prototype.toString().call()