Last active
October 13, 2018 16:18
-
-
Save fauxsaurus/ac124a022ae87e71f4cf83014500d8fa to your computer and use it in GitHub Desktop.
one line curry function
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 curry=(fn,...xs)=>xs.length>=fn.length?fn(...xs):(...ys)=>curry(fn,...xs,...ys) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment