title: javascript - query object graph?
body: <p>Given an object like this:</p>
  
  <pre><code>var obj = {
          first:{
              second:{
                  third:'hi there'
              }
          }
      };
  </code></pre>
  
  <p>And a key like this "first.second.third"</p>
  
  <p>How can I get the value of the nested object "hi there"?</p>
  
  <p>I think maybe the Array.reduce function could help, but not sure.</p>