title: check if div contains text from an array
body: <p>I have this basic code which hides the closest tr if .foo contains a string:</p>
  
  <pre><code>$('.foo:contains("blah")').each(function() {
    $(this).closest('tr').hide();
   });
  </code></pre>
  
  <p>but the time has come that "blah" is not the only string I need to check for, I realise I now need to use an array but not sure how.</p>
  
  <p>I took a wild guess and tried:</p>
  
  <pre><code>var arr = ['blah', 'foo', 'bar'];
  
  $('.foo:contains("+arr[]+")').each(function() {
        $(this).closest('tr').hide();
       });
  </code></pre>
  
  <p>but to no avail.</p>