SHARE
TWEET

Untitled

a guest Dec 2nd, 2014 174 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         function alltrue(predicates) {
  2.           return function(object) {
  3.             return _.reduce(predicates, function(memo, p) {
  4.               return memo && p(object);
  5.             }, true);
  6.           }
  7.         }
  8. //
  9.         if (search) {
  10.           list = list.filter(alltrue(fancySearches));
  11.         }
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