Created
February 18, 2017 02:39
-
-
Save csndra0504/fb71c028c67303d73c19f19a7d001ec8 to your computer and use it in GitHub Desktop.
ES6 Add Curried
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
const add = x => y => x+y; | |
console.log(add(2)(5)); //7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment