创建一个原型对象为 null 的对象
index.js
const foo = Object(null);
const bar = Object.create(null);
console.log(foo instanceof Object); // true
console.log(bar instanceof Object); // false
console.log(Object.prototype.__proto__); // null
index.js
const foo = Object(null);
const bar = Object.create(null);
console.log(foo instanceof Object); // true
console.log(bar instanceof Object); // false
console.log(Object.prototype.__proto__); // null