title: Filter array of objects with another array of objects
body: <p>This question is similar to this one <a href="https://stackoverflow.com/questions/30998424/jquery-filter-array-of-object-with-loop">Jquery filter array of object with loop</a> but this time I need to do the filter with an array of objects.</p>
  
  <p>Exemple:</p>
  
  <p>I have an array of objects like this:</p>
  
  <pre><code>myArray = [
  {
      userid: "100", 
      projectid: "10",
      rowid: "0"
  },
  {
      userid: "101", 
      projectid: "11",
      rowid: "1"},
  {    
      userid: "102", 
      projectid: "12",
      rowid: "2"},
  {    
      userid: "103", 
      projectid: "13",
      rowid: "3"
  },
  {    
      userid: "101", 
      projectid: "10",
      rowid: "4"
  }
  ...]
  </code></pre>
  
  <p>I want to filter it with an array like this:</p>
  
  <pre><code>myFilter = [
  {
      userid: "101", 
      projectid: "11"
  },
  {
      userid: "102", 
      projectid: "12"
  },
  {
      userid: "103", 
      projectid: "11"
  }]
  </code></pre>
  
  <p>and return this (the userid and the projectid in myFilter need to match the userid and the projectid in myArray):</p>
  
  <pre><code>myArrayFiltered = [
  {
      userid: "101", 
      projectid: "11",
      rowid: "1"
  },
  {
      userid: "102", 
      projectid: "12",
      rowid: "2"
  }]
  </code></pre>
  
  <p>How can I do that ?</p>