Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created April 20, 2019 07:01
Show Gist options
  • Select an option

  • Save MeetMartin/29ed53dfd595a9660795fef9339c58ed to your computer and use it in GitHub Desktop.

Select an option

Save MeetMartin/29ed53dfd595a9660795fef9339c58ed to your computer and use it in GitHub Desktop.
const trim = a => a.trim();
const add = a => b => a + b;
const simonSays = composePipe(trim, add('Simon Says: '));
simonSays(' Jump! '); // Simon Says: Jump!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment