title: How can i get arrays intersection include duplicate values using Javascript
body: <p>I need something like lodash.intersectionWith but I also need duplicated values in result array.</p>
  
  <p>Example:</p>
  
  <pre><code>var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  _.intersectionWith(objects, others, _.isEqual);
  </code></pre>
  
  <p>Expected Result:</p>
  
  <pre><code>[{ 'x': 1, 'y': 2 },{ 'x': 1, 'y': 2 }]
  </code></pre>
  
  <p>Thanks in advance!</p>