title: Find duplicate elements between two arrays
body: <p>i tried find element in two arrays but doesn't work. compare value x
  in javascript</p>
  
  <p><strong>values</strong> = </p>
  
  <p>(1) height:33 id:0 width:41 <strong>x:703.2585296630859</strong> y:246.32955852224802</p>
  
  <p><strong>valueArea</strong> = </p>
  
  <p>(1) height:33 id:2 width:41 <strong>x:703.2585296630859</strong> y:246.32955852224802 </p>
  
  <p>(2) height:21 id:1 width:60 <strong>x:672.8721689562212</strong> y:213.45216754521646</p>
  
  <pre><code>for(var i=0; i&lt;values.length;i++){
      for(var j=0; j&lt;valueArea.length; j++){
          if(values[i].x != valueArea[j].x){
              valueArea.push(values[i]);                  
          }
      }
  }
  </code></pre>
  
  <p>Thank in advance.</p>