typeof

typeof能够判断出 string、number、boolean、undefined、 sybmol,然而判断typeof(null)时值为object;
判断数据和对象时均为object

instanceof

instanceof 原理是依据构造函数的prototype属性是否呈现在对象原型链中的任意地位

Object.prototype.toString.call()

罕用于判断浏览器内置对象,对于所有根本的数据类型都能进行判断,即便是null和undefined

Array.isArray()

用于判断是否为数组