Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BinaryIdiot
on May 9, 2015
|
parent
|
context
|
favorite
| on:
A re-introduction to JavaScript
Yeah and not a big fan of them saying you can do for...in on an array while casually mentioning the limitation of doing such. I would consider it far better practice to NEVER iterating over an array with for...in.
TazeTSchnitzel
on May 9, 2015
[–]
Is there even any guarantee it would be iterated in the correct order?
BinaryIdiot
on May 9, 2015
|
parent
[–]
Nope. Then again if you're doing a for...in you probably don't care about order.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: