title: dynamicly nested object from another object
body: <p>trying to figure out how to dynamicly create a new nested object from this one:</p>
  <pre><code>object1 = {
      DataStore : false,
      Header: false,
      Footer : false,
      Sidebar : false,
      Main : false,
      }
  </code></pre>
  <p>to nested one like this:</p>
  <pre><code>const registerComponentsLocal = {
      'DataStore': {
          'debug': false
      },
      'Header': {
          'debug': false
      },
      'Footer': {
          'debug': false
      },
      'Sidebar': {
          'debug': false
      },
      'Main': {
          'debug': false
      },
  }
  </code></pre>
  <p>keys and values have to by dynamic. Only important thing is a structure of the final object.
  Any ideas would be greatly appricieated.</p>