title: Compare two arrays and connect it
body: <p>I have two arrays as <code>types</code> and <code>defaultTypes</code>. I need to display <code>types</code>  with default values array <code>defaultTypes</code>.</p>
  
  <pre><code> const types = [
      {
          Id: 2,
          Name: 'Some value here'
      },
      {
          Id: 3,
          Name: 'Some value here'
      },
      {
          Id: 4,
          Name: 'Some value here'
      }
   ];
  
   const defaultTypes = [
      {
          Id: 1,
          Name: 'Default value 1'
      },
      {
          Id: 2,
          Name: 'Default value 2'
      }
   ]
  </code></pre>
  
  <p>If in <code>types</code> does not exist some of default types (in this case Id: 1 does not exist in the <code>types</code> array). I need to add that object in <code>types</code> array.
  Expected result will be:</p>
  
  <pre><code> const expectedTypes = [
      {
          Id: 1,
          Name: '-'
      },
      {
          Id: 2,
          Name: 'Some value here'
      },
      {
          Id: 3,
          Name: 'Some value here'
      },
      {
          Id: 4,
          Name: 'Some value here'
      }
   ]; 
  </code></pre>
  
  <p>Objects with Ids 1 and 2 always need to be in expectedTypes.</p>