title: How to compare two JSON values based on the key name in javascript?
body: <p>I have two JSON arrays like </p>
  
  <pre><code>array1=[{a:1,b:2,c:3,d:4}]
  &amp;
  array2=[{a:2,b:5,c:3,d:4}]
  </code></pre>
  
  <p>Is there any method to find the value of one of the keys in array1 present in array 2.Here in the array 1 key b contains the value 2,and array2 also contain a key a with value 2. How can I capture the key name of array 2 which has the same value for one of the keys in array.</p>