title: Javascript: Whats the best way Convert Array into Object?
body: <p>what is the best way to convert:</p>
  
  <pre><code>a = ['USD', 'EUR', 'INR']
  </code></pre>
  
  <p>to</p>
  
  <pre><code>a = {'USD': 0, 'EUR': 0, 'INR': 0};
  </code></pre>
  
  <p>*manipulating array element as key of objects with value as initially 0.</p>