title: Merge 2 arrays of objects with different keys with lodash
body: <p>I use Backbone/lodash for a project, and <strong>I wish merge 2 arrays of objects according to a specific value</strong>. With this example below, the merge is based on the same value with 2 different key (id and number).</p>
  
  <p><em>Example</em></p>
  
  <pre><code>var people = [
      {
          id: "1",
          name: "John"
      },
      {
          id: "2",
          name: "Jane"
      }
  ];
  
  var data = [
      {
          number: "2",
          role: "Designer"
      },
      {
          number: "1",
          role: "Developer"
      }
  ];
  
  // Outpout
  
  var merge = [
      {
          id: "1",
          number: "1",
          name: "John",
          role: "Developer"
      },
      {
          id: "2",
          number: "2",
          name: "Jane",
          role: "Designer"
      }
  ];
  </code></pre>