3 ms·
To be fair `Object.keys()` is relatively recent and still needs to be shimmed for IE < 9. Even so I'd expect the new iterator based (like generators) key, value
by swannodette 12y ago
To be fair `Object.keys()` is relatively recent and still needs to be shimmed for IE < 9. Even so I'd expect the new iterator based (like generators) key, value, and entry iteration to eventually outperform the `Object.keys()` interface that needs to return an array simply to have something to iterate over.
- jonpaul 12y agoTrue. But anyone supporting IE < 9 I'd think would be using ES5 shim: https://github.com/es-shims/es5-shim https://github.com/es-shims/es5-shim But maybe not?