Hacker News new | past | comments | ask | show | jobs | submit login

The `for … in` statement iterates over the enumerable properties of an object¹. It’s not for arrays.

1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...




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

Search: