title: How i can to convert array to object of array in react?
body: <p>I have a data in array</p>
  <pre><code>[&quot;Avengers&quot;,&quot;Batman&quot;,&quot;Spiderman&quot;,&quot;IronMan&quot;]
  </code></pre>
  <p>how I can to covert to below</p>
  <pre><code>{&quot;Avenger&quot;:&quot;Avenger&quot;,&quot;Batmane&quot;:&quot;Batman&quot;,&quot;Spiderman&quot;:&quot;Spiderman&quot;,&quot;Ironman&quot;:&quot;Ironman&quot;}
  </code></pre>