SHARE
TWEET

Untitled

a guest Dec 2nd, 2014 171 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function allTrue(collection, predicates){
  2.   var results = [];
  3.   _.each(predicates, function(fn){
  4.     results.push(_.filter(collection, fn));
  5.   })
  6.   return _.intersection.apply(null, results);
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top