Simple hash table (associate array) in JavaScript


/ Published in: JavaScript
Save to your folder(s)

/* --==[ EXAMPLE ]==--

var colors = new AArray();
colors.add("k01", {bk:"#fff",tk:"b",it:"hello"});

var oC = colors.get("k01");

var tT = '';
for(K in oC) tT += "[" + K + "]: " + oC[K] + "\n";

tT += "\n\n";
tT += oC.bk + "\n";
tT += oC.tk + "\n";
tT += oC.it + "\n";

alert(tT);
*/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.