How to use lodash intersectionWith to compare and find same attribute with same value among two arrays with difference structure?
<p>for example, I have two set of arrays</p>

<pre><code>arr1 = [
  {
    myName: 'Adam',
    mySkill: 'CSS',
  },
  {
    myName: 'Mutalib',
    mySkill: 'JavaScript',
  },
];

arr2 = [
  {
    myName: 'Adam',
    myWeight: '112',
  },
  {
    myName: 'Habib',
    myWeight: '221',
  },
];
</code></pre>

<p>I try to compare them, and pick the value of <code>myName</code> that is the same with lodash's <code>intersectionWith</code> function. But has not been able to by doing </p>

<pre><code>newList.push(intersectionWith(arr1.arr2,isEqual])); 
</code></pre>

<p>*in this case, result of <code>intersectionWith(arr1.arr2,isEqual])</code> should be <code>Adam</code></p>

<p>Any suggestions, solutions, thoughts on how should I proceed further?</p>

<p>Also, previously I was using two <code>forEach</code> one within another to achieve that... unless that is the best way that I can do about this kind of sorting?</p>