I want to define an associative array like this
var theVar = [
{ "100", [0, 1, 2] },
{ "101", [3, 4, 5] }
]
Essentially I want to be able to access an array of three numbers by specifying the custom index.
However, no matter what I try I cannot make it work.
I know I can define it as:
theVar["100"] = [0, 1, 2];
theVar["101"] = [1, 2, 3];
But I am setting this somewhere else and I'd prefer to be able to set it in a single statement.