type
定义
背景知识
typeof undefined; // "undefined";
typeof 1; // "number";
typeof '1'; // "string";
typeof true; // "boolean";
typeof Symbol(); // "symbol";
typeof {a : 1}; // "object";
为什么 typeof null === 'object'
为什么 typeof function(){} === 'function'
Object.prototype.toString 识别类型

实现
参考
补充
判断是否为数组?
最后更新于