title: Set value in nested object
body: <p>I try to set a value into nested array by a key.</p>
  
  <p>My Object looks like</p>
  
  <pre><code>var Obj = {
    key1: {
      key2: value,
    }
  }
  </code></pre>
  
  <p>I try to set key1 by <code>key1.key2</code> like</p>
  
  <pre><code>const name = `key1.key2`
  
  Obj[name] = value
  </code></pre>
  
  <p>I knew I need to do it like <code>Obj['key1']['key2']</code> but I get only a <code>string</code> which looks like <code>key1.key2</code></p>