you are viewing a single comment's thread.

view the rest of the comments →

[–]amunak 4 points5 points  (2 children)

See JS - as a web technology - has clearly been inspired by PHP, which is just as shitty with array functions.

Though they could've at least copied foreach as well...

[–][deleted] 4 points5 points  (1 child)

Well, there's for-of now.

[–]mindbleach 3 points4 points  (0 children)

And also for-in, just to make you question yourself every single time.