Below are revisions for this snippet.

Emulating the PHP foreach(){...} in javascript





Syndication

Revision Revison 1
Just a small snippet I discovered when I was tired writing somearrayname\[i\] I thought there was something like foreach in javascript but couldn't find any so why not make one?
For those foreach(){...} lovers.

Hope it makes your life easier.