title: Underscore - Filter against an array of values
body: <p>I have a collection <code>self.models</code>. I also have an array of an object which contains the fields and filters I wish to apply to my collection called <code>filterArr</code>. An example of this would be:</p>
  
  <pre><code>[{field: "Account", filter: "123"}, {field: "Owner", filter: "Bob"}]
  </code></pre>
  
  <p>The question is, I'm not sure quite how I'd iterate through each of my models to return only those models to which this <code>filterArr</code> applies too, I know it has to be something like this, but this is hard-coded:</p>
  
  <pre><code>self.models = _.filter(self.models, function (model) {
                      model = model.toJSON();
                      return model.Account === "123" &amp;&amp; model.Owner === "Bob";
  
  });
  </code></pre>