On Thu, Oct 25, 2012 at 1:24 PM, Axel Rauschmayer <[email protected]> wrote:
> Sorry, slightly off-topic: Does Firefox already have @iter.items (etc.)? Or
> is there something similar one could use to iterate over [key, value] pairs
> for objects, via for-of?
You can use Iterator, e.g.:
for ([key, value] of Iterator({a:1, b:2, c:3})) {
alert(key + "=>" + value);
}
--
Marek Stępień
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss