title: Create nested object from object with multiple strings, javascript
body: <pre><code>var input = {
    "id": 'AB',
    "specified.name": 'some name',
    "specified.manufacturer": 'some manufacturer',
    "specified.environment.state": 'good'
  }
  
  /**
  var expectedOutput = {
    id:'AB', 
    specified: {
      name: 'some name', 
      manufacturer: 'some manufacturer',
      environment: {
        state: 'good'
      }
    }
  };
  **/
  </code></pre>
  
  <p><a href="https://jsbin.com/senehijula/edit?html,js,output" rel="nofollow noreferrer">https://jsbin.com/senehijula/edit?html,js,output</a></p>
  
  <p>I'm aware there are some similar questions but not really like this one.</p>
  
  <p>Any elegant way of doing this?</p>