title: Node.js filter array with multiple terms
body: <p>I have a files array that contains a set of text files in this format: </p>
  
  <p>[test/fixtureData/fixtureData2/test3.inc,
  test/fixtureData/fixtureData3/test5.inc,
  test/fixtureData/test1.inc,
  ,test/fixtureData/test6.ssi
  ,test/fixtureData/test9.html]</p>
  
  <p>I want to filter this array so that it filters out '.ssi' and '.html' files. And the code below:</p>
  
  <pre><code>var recursiveReadSync = require('recursive-readdir-sync'),
  var fs = require('fs');
  
  var foundFiles = [];
  var files = fs.readdirSync(url);
  </code></pre>
  
  <p>I've recursed through a file and for simplicity of not pasting my whole code, assume the files array contains the items as listed above. I'm not sure how to filter this files array, i've looked at a few nodeJS api's and haven't found anything </p>