title: Compare 2 arrays and show unmatched elements from array 1
body: <p>I have 2 arrays as follows. I want to compare both arrays and only provide the elements from 'check' which are not present in 'data' array. </p>
  
  <pre><code>var check= ["044", "451"],
  data = ["343", "333", "044", "123", "444", "555"];
  </code></pre>
  
  <p>The function used is as follows. This function will result in providing the elements in 'check' array which are present in 'data' array</p>
  
  <pre><code>function getMatch(a, b) {
  var matches = [];
  
  for ( var i = 0; i &lt; a.length; i++ ) {
      for ( var e = 0; e &lt; b.length; e++ ) {
          if ( a[i] === b[e] ) matches.push( a[i] );
      }
  }
  return matches;
  }
  
  getMatch(check, data); // ["044"] ---&gt; this will be the answer as '044' is only present in 'data'
  </code></pre>
  
  <p>I want to have a list of elements which are not present in 'data' array. Can someone let me know how to achieve this. </p>