Skip to content

Instantly share code, notes, and snippets.

@mkczarkowski
Created May 23, 2018 13:49
Show Gist options
  • Select an option

  • Save mkczarkowski/4c8221c831d4ef373eda34f8b7166d4d to your computer and use it in GitHub Desktop.

Select an option

Save mkczarkowski/4c8221c831d4ef373eda34f8b7166d4d to your computer and use it in GitHub Desktop.
// Deklaracja przodem.
function makeAdder(x) {
return function(y) {
return x + y;
}
}
// Do celu =>!
const makeAdder = x => y => x + y;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment