title: Access variable property by name as string in n-dimensional object
body: <p>I have a multi-dimensional object <code>data</code>, and I want to fetch a given branch of it via a string. Example:</p>
  
  <pre><code>data = {
      title: 'Hi',
      topics: {
          title: 'Yey',
          general: {       
              topics: {
              description: 'Desc'
          }
      }
  }
  </code></pre>
  
  <p>The dimensions of the object are variable. What I want is to be able to import the whole object, and then dynamically pick the branch I want, like so:</p>
  
  <pre><code>import data from './dataFile'
  
  let branchString = 'data.topics.general'
  let myBranch = data + branchString // this obviously doesn't work
  </code></pre>
  
  <p>Thanks in advance.</p>