title: lodash Filter collection using array of values
body: <p>I would like to filter a collection using array of property value. Given an array of IDs, return objects with matching IDs. Is there any shortcut method using <code>lodash</code>/<code>underscore</code>?</p>
  
  <pre class="lang-js prettyprint-override"><code>var collections = [{ id: 1, name: 'xyz' },
                     { id: 2,  name: 'ds' },
                     { id: 3,  name: 'rtrt' },
                     { id: 4,  name: 'nhf' },
                     { id: 5,  name: 'qwe' }];
  var ids = [1,3,4];
  
  // This works, but any better way?
  
  var filtered = _.select(collections, function(c){    
      return ids.indexOf(c.id) != -1
  });
  </code></pre>