title: Is it possible to filter array values by multiple values by using underscore?
body: <p>I have the following array of values:</p>
  
  <pre><code>[
     {
       id: 1,
       field: 'map'
     },
     {
       id: 2,
       field: 'dog'
     },
     {
       id: 3,
       field: 'map'
     }
  ]
  </code></pre>
  
  <p>I need to find out elements with field equals <code>dog</code> and <code>map</code>.  I know I could use the <code>_.filter</code> method and pass an iterator function, but what I want to know is <strong>whether or not there's a better solution to this issue where I could pass search field and possible values</strong>.  Could someone provide a better way of doing so?</p>
  
  <p><strong>EDIT:</strong>:</p>
  
  <p>I could use the  following approach:</p>
  
  <pre><code>_.where(array, {field: 'dog'})
  </code></pre>
  
  <p>But here I may check only one clause</p>