Skip to content

Instantly share code, notes, and snippets.

@munkhorgil
Created October 10, 2019 15:48
Show Gist options
  • Save munkhorgil/0b48b6cad1b8763cca0fd47f72261ca5 to your computer and use it in GitHub Desktop.
Save munkhorgil/0b48b6cad1b8763cca0fd47f72261ca5 to your computer and use it in GitHub Desktop.
Curried function
/*
* 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