📜  空对象的 javascript 测试 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:32.240000             🧑  作者: Mango

代码示例6
// because Object.keys(new Date()).length === 0;
// we have to do some additional check
Object.keys(obj).length === 0 && obj.constructor === Object