Archive for September 2nd, 2005

For Each Loop in Mozilla

Friday, September 2nd, 2005

I’m not entirely sure when Mozilla started to support for each loops but I guess it was part of the E4X code checkins. Anyway, I was totally shocked when I saw it and I fired up a quick test.
var o = {a: “A”, b: “B”, c: “C”};
for each (var v in o) {
[...]