title: ES6: How to compare values in two arrays
body: <p>I have two arrays;</p>
  
  <pre><code>let items = {
      search: [
         ['car', 'door', 'pen']
      ]
  }
  
  let data.props = [];
  
  data.props = [
      {label: "car"}, 
      {label: "window"},
      {label: "kettle"},
      {label: "chair"},
      {label: "door"},
  ]
  </code></pre>
  
  <p>How can I check/compare between the two arrays using es6? A little bit tricky for me since <code>items[]</code> is a nested array. </p>
  
  <p>What I have only checks for the first item.</p>
  
  <pre><code>if (data.props['0'].label === items.search['0'].values['0']) {
          let searchItems = [];
          searchItems.push(data.props['0']);
          console.log(searchItems);
      }
  </code></pre>