```
var a = {};
var length = 10000000;
for (var i = 0;i < length; i++) {
  a[i] = true;
}
console.time('a');
for (var i = 0; i < length; i++) {
  a[i];
}
console.timeEnd('a');
```

只要11ms