Created
June 30, 2017 18:56
-
-
Save well1791/d55e88b844a6b8d280283089c2ce7df2 to your computer and use it in GitHub Desktop.
Curry
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 curryN = (n, f) => (...args) => args.length < n | |
? curryN(n, f).bind(null, ...args) | |
: f(...args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment