Created
November 29, 2017 07:46
-
-
Save Arieg419/8259f739839454e48ee56a530f1b628a to your computer and use it in GitHub Desktop.
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 addWrapper = () => (x,y) => x + y; | |
const add = addWrapper(); | |
const sum1 = add (1,2); // 3 | |
// Or we could do it like this | |
const sum2 = addWrapper()(4,4); // 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment