title: How to filter a list using lodash if the filter function is asynchronous
body: <p>I am new to lodash and Javascript in general. I am using nodejs.
  I am using the lodash filter function to filter some contents in my collection.</p>
  
  <p>Here is the snippet</p>
  
  <pre><code>filteredrows = _.filter(rows, function(row, index){
  
     //here I need to call some asynchronous function which checks the row
     //the return value of this asynchronous function will determine whether to return true or false for the filter function.
  
  });
  </code></pre>
  
  <p>My question is, how do I do this? using a closure? Is it possible to do this within the lodash filter function?
  Thanks in advance.</p>