title: Javascript map over two arrays of objects
body: <p>I have two arrays:</p>
  <pre><code>const people = [{id:1, name:&quot;John&quot;}, {id:2, name:&quot;Alice&quot;}];
  const address = [{id:1, peopleId: 1, address: &quot;Some street 1&quot;}, {id:2, peopleId: 2, address: &quot;Some street 2&quot;}]
  </code></pre>
  <p>How can I filter over this two arrays and get one like this:</p>
  <pre><code>const fullData = [{id: 1, name: &quot;John&quot;, address: &quot;Some street 1&quot;}, {id: 2, name: &quot;Alice&quot;, address: &quot;Some street 2&quot;}]
  </code></pre>