Created
July 1, 2014 07:40
-
-
Save aereal/5b2fd74b1f78f00fbde7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logicalConjunction (criteria) { | |
return criteria.reduce(function (f, g) { | |
return function () { return f.apply(this, arguments) && g.apply(this, arguments) }; | |
}); | |
} |
Author
aereal
commented
Jul 1, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment