title: Convert javascript dot notation object to nested object
body: <p>I'm trying to build a function that would expand an object like :</p>
  
  <pre><code>{
      'ab.cd.e' : 'foo',
      'ab.cd.f' : 'bar',
      'ab.g' : 'foo2'
  }
  </code></pre>
  
  <p>Into a nested object :</p>
  
  <pre><code>{ab: {cd: {e:'foo', f:'bar'}, g:'foo2'}}
  </code></pre>
  
  <p>Like this php function : <a href="http://lithify.me/docs/lithium/util/Set%3a%3aexpand%28%29">Set::expand()</a></p>
  
  <p>Without using eval of course.</p>