title: JS: How to combine Object from two different arrays into one Array/Object
body: <p>If have two arrays (content &amp; ids) which i need to combine in one array (combined).</p>
  
  <p><strong>First Array:</strong></p>
  
  <pre><code>let content = [
    { "Name": "Max Mustermann" },
    { "Name": "Berta Beispiel" },
    { "Name": "Zacharias Zufall" }
  ]
  </code></pre>
  
  <p><strong>Second Array:</strong></p>
  
  <pre><code>let ids = [
    "12345678-1", 
    "12345678-2", 
    "12345678-3"
  ]
  </code></pre>
  
  <p>Which should combined look like this:</p>
  
  <pre><code>let combined = [
    {
      "Name": "Max Mustermann",
      "id": "12345678-1"
    },
      {
      "Name": "Berta Beispiel",
      "id": "12345678-2"
    },
      {
      "Name": "Zacharias Zufall",
      "id": "12345678-3"
    }
  ]
  </code></pre>
  
  <p>I tried different things from push, reduce, map.... but nothing worked: :(</p>