title: How to chain multiple filters in lazy.js in a loop (from array)
body: <p>I have an array that contain filter functions that need to be applied to an array of items in Lazy.js. I've tried using a for-loop but only the last filter is applied. </p>
  
  <pre><code>function (searchText) {
      var result = Lazy(input);
  
      for (var query of this.querylist) {
          result = result.filter((item) =&gt; {
              return query.filterFunc(item, searchText, query.compareFunc);
          });
      }
  
      return result.toArray();
  }
  </code></pre>
  
  <p>Is there a way of applying a list of filters without hardcoding the chaining?</p>
  
  <p><a href="http://jsfiddle.net/6fu66Lgy/2/" rel="nofollow">Here is a fiddle showing the issue</a></p>