WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Associative Arrays, Jose Luis Martinez, June 22, 2004
     Re:Associative Arrays, Erik Arvidsson, July 19, 2004
     Re:Associative Arrays, Jude, July 11, 2004
         Re:Associative Arrays, Erik Arvidsson, July 19, 2004

Subject: Re:Associative Arrays From: Erik Arvidsson Date: July 19, 2004
Since Array extends Object you get the Object interface for free. Don't use an Array as the base here but use Object. People have a tendency to misuse this feature of JS. Use an object literal or the long form like you wrote, except that you want to use new Object instead.

See Jude's reply as well.

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX