title: When using strings with numbers at the start in an array key (Indesign 2017, extendscript) they don't get added to the array
body: <p>Observe:</p>
  
  <pre><code>    var groupedLinks = new Array;
      for(var i = 0; i &lt; 5; i++) {
        linkName = "59notgonnawork" + i;
        groupedLinks[linkName] = new Array;
      }
  </code></pre>
  
  <p>I would have expected the result to be the array groupedLinks to be filled up with 5 new keys, the value would be 5 empty arrays. </p>
  
  <p>The actual result in extendscript would be ... grouplinks ... empty.</p>
  
  <p>If I would change this example to be:</p>
  
  <pre><code>    var groupedLinks = new Array;
      for(var i = 0; i &lt; 5; i++) {
        linkName = "notgonnawork" + i;
  
        groupedLinks[linkName] = new Array;
      }
  </code></pre>
  
  <p>It would work perfectly. The only change is the missing "59" at the start of the string used for the array key. </p>
  
  <p><strong>Note that this works perfectly when I run it in console for chrome or firefox. It seems to be indesign and/or extendscript fooling around.</strong> </p>
  
  <p>Anything have any ideas why ? I've meanwhile worked around the problem but I'm intrigued. </p>