Andrew Dupont wrote:
> http://www.andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/
Just to clarify, it all depends on what you mean by "associative array". To me
that means Hash, but that's cause I come from Perland.
Since you didn't show us how you declared your associative array, I'm assuming
you meant something like this:
var myAssocArry = new Array();
But if you instead used a Javascript Object (which is more like a Perl hash)
then you most certainly can use for( var j in ...);
var myAssocArry = {}
or
var myAssocArry = new Object();
--
Michael Peters
Developer
Plus Three, LP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---