title: typeof returns object but getting error: "undefined is not an object"
body: <p>I am currently working with the following object called <code>data</code>:</p>
  
  <pre><code>Object {
     "getOrder": Array [
        Object {
           "__typename": "Order",
           "id": 1,
           "items": Array [
              Object {
                 "__typename": "Item",
                 "id": 1,
              },
              Object {
              "__typename": "Item",
              "id": 2,
           },
        ],
     },
   ],
  }
  </code></pre>
  
  <p>When I try to access <code>data.getOrder</code>, I get the the error <code>undefined is not an object</code>. When I <code>console.log(typeof data.getOrder)</code> it outputs object. When I just print <code>data.getOrder</code>, it correctly prints the array above.</p>
  
  <p>Why is it that when I try to do <code>data.getOrder[0]</code> I get the above error? To me it seems that it is an object based on what I am printing and checking.</p>