title: jQuery filter for each string that's not null
body: <p>How would I apply a jQuery filter for every string that's not null?</p>
  
  <p>Basically, I have the following code and would want to make it work for any number of "selectors" that are being set beforehand.</p>
  
  <p>The list of selectors available would be in an array.</p>
  
  <pre><code>if (typeselector === '' &amp;&amp; colorselector === '') {          
    $('.product').filter(selector).show();
  } else if (typeselector === '') {
    $('.product').filter(selector).filter(colorselector).show();
  } else if (colorselector === '') {
    $('.product').filter(selector).filter(typeselector).show();
  } else {
    $('.product').filter(selector).filter(typeselector).filter(colorselector).show();
  }
  </code></pre>
  
  <p>Thanks for any suggestions/help!</p>