title: Get object with string identifier
body: <p>I need help with getting property of object with String in JS.</p>
  
  <p>I have object </p>
  
  <pre><code>elements = {
      element : {
              date: {
                   day: 'Monday'
              }
      }
  }
  </code></pre>
  
  <p>and i have JS function where input is <strong>"element.date.day"</strong>. And
  basically i need  to do something like this:</p>
  
  <pre><code>function getObjectByStringIdentifier ( stringId ) {
      return elements[stringId];
  }
  </code></pre>
  
  <p>is this possible in JS ?</p>