Created
October 10, 2019 15:48
-
-
Save munkhorgil/0b48b6cad1b8763cca0fd47f72261ca5 to your computer and use it in GitHub Desktop.
Curried function
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
/* | |
* Compose curried function | |
*/ | |
const sum = a => b => a + b; | |
sum(5)(15); // 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment