Created
April 20, 2017 19:12
-
-
Save stevewadsworth/81fa2a6f27adf069ea9933454ffddd4a 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 curryFn = function(fn, ...args) { | |
| return function(...args2) { | |
| return fn.apply(this, args.concat(args2)); | |
| }; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment