How can I make multidimensional array in javascript in the following format:
Array[
{index}:{x-coords}
{y-coords},
{index2}:{x-coords}
{y-coords},
.... ];
The data should look like as follows:
Array[
{
indexabc:{10},{20}
},
{
indexxyz:{30},{40}
}
];
Also, how to access the array elements? I am storing value in them through a function so it will be called recursively.