Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created April 20, 2019 06:56
Show Gist options
  • Select an option

  • Save MeetMartin/7e00af3f91152acd93fbbe85a82ea437 to your computer and use it in GitHub Desktop.

Select an option

Save MeetMartin/7e00af3f91152acd93fbbe85a82ea437 to your computer and use it in GitHub Desktop.
const plusOne = a => a + 1;
const plusTwo = a => a + 2;
const composedPlusThree = a => plusTwo(plusOne(a));
composedPlusThree(3); // 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment