title: Unordered Dictionary in Javascript
body: <p>I would like to iterate through the key of an unordered dictionary in Javascript. I don't even know if it does exist or not.</p>
  
  <p>At the moment I am having the following code :</p>
  
  <pre><code>var l = [5,3,2];
  var unorderedDict = {};
  for (var i=0; i&lt;l.length; i++) {
      unorderedDict[l[i]] = 'foo';
  }
  </code></pre>
  
  <p>My dictionary will then be like : <code>{2:'foo', 3:'foo', 5:'foo'}</code> or in my case, I would like to keep the ordering of the initial list (so : <code>{5:'foo', 3:'foo', 2:'foo'}</code>)</p>
  
  <p>How can I achieve this ?</p>