title: Compare two array's and disable element if the id's are equal
body: <p>I have two array in the state and both have id's.</p>
  
  <pre><code>arrOne = [2,6,8]
  arrTwo = [3, 8, 4]
  </code></pre>
  
  <p>if some array have the same value (In this case 8) i would like to disable all the buttons that have this equal value. </p>
  
  <p>I tried like this but i'm not getting it </p>
  
  <pre><code>button = () =&gt; {
  const checkId = this.state.arrOne.filter(arr =&gt; arr.includes(this.state.arrTwo.map(data =&gt; data.id))
  
  
  if(checkedId){
  return &lt;Button disable /&gt;
  } 
  
  return &lt;Button /&gt;
  }
  </code></pre>
  
  <pre><code>render(){
  this.button()
  }
  </code></pre>
  
  <p>I have buttons with all the array, if the array one is equal to the array two i want to disable this specific button that is equal
  Any ideas ?</p>
  
  <p>thanks for the help</p>