Last active
March 6, 2019 12:29
-
-
Save christianwish/676a03e0f8c37ef58dc203bd7fb97ea7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const compose = (...fns) => x => fns.reduce((v, f) => f(v), x); | |
const all = xs => xs.reduce((acc, x) => ((!x) ? x : acc), true); | |
const any = xs => xs.reduce((acc, x) => (x || acc), false); | |
const not = x => !xs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment