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