I've declared Javascript arrays in such a way that I could then access them by a key, but it was a long time ago, and I've forgotten how I did it.
Basically, I have two fields I want to store, a unique key, and its value. I know there is a way to do it.. something like:
var jsArray = new {key: 'test test', value: 'value value'},
new {key: 'test 2', value: 'value 2'};
and accessed like:
value = jsArray[key]
Can someone remind me?