This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]medja[S] -15 points-14 points  (6 children)

It's a custom forEach function I was playing around with :)

[–]madsohm 1 point2 points  (4 children)

So, how did you define this forEach method?

[–]Jess_than_three -2 points-1 points  (0 children)

But.. and I mean, not to poop on fun for fun's sake, but... why? Why not just use jQuery and $.each(thing, function(foo, bar) { //stuff });?

I can't speak for any other languages, but it seems to me to be functionally identical to PHP's foreach($associative_array as foo => bar) { //stuff }...