title: How to append a string into an object 'path' in Javascript?
body: <p>I have this path in a string: <code>var path = 'bonds.international.emergent'</code> and the object <code>portfolio</code>. </p>
  
  <p>I want to access <code>portfolio.bonds.international.emergent</code>, using the path in the <code>path</code> variable.</p>
  
  <p>Something like <code>portfolio[path]</code>, which obviously doesn't work. Anyone knows how to do this?</p>