title: Populate nested object from array?
body: <p>I have a question, how to create nested object from array?
  I.e. I have a following array:</p>
  
  <p><code>var myArr = ['foo', 'bar', 'baz']</code>
  and need to make it an object like:</p>
  
  <p><code>myObj = {foo: { bar: { baz: { } } }}</code></p>
  
  <p>How can I do that properly?</p>