R
Robert
I am curious why some people feel that Javascript doesn't have
associative arrays. I got these definitions of associative arrays via
goggle:
Arrays in which the indices may be numbers or strings, not just
sequential integers in a fixed range.
www.sunsite.ualberta.ca/Documentation/Gnu/gawk-3.1.0/html_chapter/gawk_20.html
(n.) A collection of data (an array) where individual items can be
indexed (accessed) by a string, rather than by an integer as is common
in most programming languages.
docs.sun.com/db/doc/805-4368/6j450e60a
(n.) A collection of data (an array) where individual items may be
indexed (accessed) by a string, rather than by an integer as is common
in most programming languages.
www.npac.syr.edu/nse/hpccgloss/hpccgloss.html
Another name for a dictionary.
academics.tjhsst.edu/compsci/thinkCS/chap19/node11.html
My goggle search:
http://www.google.com/search?hl=en&lr=&oi=defmore&q=define:Associative+Array
It seems to me that both javascript arrays and object meet these
definitions.
One problem with Javascript would be the extra indexes automatically
created but you can check for them if you need too.
Maybe I am missing something.
Robert
associative arrays. I got these definitions of associative arrays via
goggle:
Arrays in which the indices may be numbers or strings, not just
sequential integers in a fixed range.
www.sunsite.ualberta.ca/Documentation/Gnu/gawk-3.1.0/html_chapter/gawk_20.html
(n.) A collection of data (an array) where individual items can be
indexed (accessed) by a string, rather than by an integer as is common
in most programming languages.
docs.sun.com/db/doc/805-4368/6j450e60a
(n.) A collection of data (an array) where individual items may be
indexed (accessed) by a string, rather than by an integer as is common
in most programming languages.
www.npac.syr.edu/nse/hpccgloss/hpccgloss.html
Another name for a dictionary.
academics.tjhsst.edu/compsci/thinkCS/chap19/node11.html
My goggle search:
http://www.google.com/search?hl=en&lr=&oi=defmore&q=define:Associative+Array
It seems to me that both javascript arrays and object meet these
definitions.
One problem with Javascript would be the extra indexes automatically
created but you can check for them if you need too.
Maybe I am missing something.
Robert