Creating a Object Array From an Array : <p>I have an array like this:</p>

<pre><code>const companyNames = ["A", "B", "C"];
</code></pre>

<p>I want to convert it to a something like this:</p>

<pre><code>const companyNames = {
  0: 'A',
  1: 'B',
  2: 'C'
};
</code></pre>
