Created
December 10, 2018 19:53
-
-
Save bpinedah/8bd0a520ef636c1a1c863aed4ea780ab to your computer and use it in GitHub Desktop.
Currying article
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 list = [1, 2, 3]; | |
function map(arr) { | |
return arr.map(function double(i){ | |
return i * 2; | |
}) | |
} | |
map(list); // [2, 4, 6] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment