title: Getting the first index of an object
body: <p>Consider:</p>
  
  <pre><code>var object = {
    foo: {},
    bar: {},
    baz: {}
  }
  </code></pre>
  
  <p>How would I do this:</p>
  
  <pre><code>var first = object[0];
  console.log(first);
  </code></pre>
  
  <p>Obviously, that doesn’t work because the first index is named <code>foo</code>, 
  not <code>0</code>.</p>
  
  <pre><code>console.log(object['foo']);
  </code></pre>
  
  <p>works, but I don’t know it’s named foo. It could be named anything. I just want the first.</p>