Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


True. But anyone supporting IE < 9 I'd think would be using ES5 shim: https://github.com/es-shims/es5-shim But maybe not?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: