title: Converting array into object in javascript
body: <p>I am trying to convert Array into object</p>
  <p>For example:</p>
  <p>I want to convert, below array into</p>
  <pre class="lang-js prettyprint-override"><code>var a = ['a','b','c','d']
  </code></pre>
  <p>Below object</p>
  <pre class="lang-js prettyprint-override"><code>var obj = {
    'a': {
      'b': {
        'c': {
          'd': 'any value'
        }
      }
    }
  }
  </code></pre>
  <p>Any one have any idea ?</p>