Y
Hacker News
new
|
ask
|
show
|
jobs
by
cristiantincu
4749 days ago
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...