Skip to content

Instantly share code, notes, and snippets.

@dtipson
Created February 5, 2016 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtipson/8577067066732795575d to your computer and use it in GitHub Desktop.
Save dtipson/8577067066732795575d to your computer and use it in GitHub Desktop.
compose(v => !console.log('ran f') && v/2, v => !console.log('ran g') && v+10)(0);
//-> logs "ran g"
//-> logs "ran f"
//-> 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment