[Dojo-interest] dojo.forEach() help.

Daniel daniel.carrera at zmsl.com
Sun Dec 16 13:31:32 UTC 2007


Hello,

I need help with dojo.forEach. I want to step through a *hash*, not an 
array. For example:

var myHash = {foo: "Hello", bar: "World" };

dojo.forEach(myHash, function ...
	...
});



Can dojo.forEach do that? The documentation I find is only for arrays. 
If dojo.forEach can't do it, could someone suggest another way to step 
through a hash?

Best,
Daniel.


More information about the Dojo-interest mailing list