title: JS : Convert Array of Strings to Array of Objects
body: <p>i have this array of <strong>strings</strong> :</p>
  
  <pre><code>let myArray : ["AA","BB" , "CC" ...]
  </code></pre>
  
  <p>I want to convert it to an <strong>array of objects</strong>:</p>
  
  <pre><code>myArray  = [{"id":1 , "value": "AAA"},{"id":2 , "value": "BBB"},{"id":3 , "value": "CCC"}...]
  </code></pre>
  
  <p>I ve trie with <strong>"let for"</strong>:</p>
  
  <pre><code>for (let obj of  ListObj) {
        let resObj = {};
        resObj ['value'] = obj  ;
        equipment = resObj ;
  }
  </code></pre>
  
  <p>And with <strong>map</strong> :</p>
  
  <pre><code>ListObj.map(obj =&gt; { 'value' = obj })
  </code></pre>
  
  <p><strong>Suggestions ?</strong></p>