title: How to convert a forEach into a map
body: <p>How can i convert the ugly forEach into a nicer map?</p>
  
  <pre><code>convertedClientsToArray() {
          let clientArray = [];
          this.selectClients.forEach(client =&gt; {
              clientArray[client.id] = client.name;
          })
          return clientArray
  }
  </code></pre>
  
  <p>i already tried but then it doesn't return the id as key.</p>
  
  <p>Thanks for any help</p>