Javascript Associate Arrays
In this lesson, we'll learn how to actually write associative arrays (hashes) in Javascript, since there's nothing called associative arrays in JS and using our plain indexed arrays as associative arrays can cause confusions and weird bugs.
In JavaScript, one should really use Object
for a set of key/value pairs since an Array
is meant to be numeric.
Related:
Warning: Invalid argument supplied for foreach() in /var/www/cssdeck.com/app/modules/labs/views/_details.php on line 68