Skip to content

Instantly share code, notes, and snippets.

@GregoryCollett
Last active March 14, 2017 10:30
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 GregoryCollett/8be44edca1b51c834acd2344930736ef to your computer and use it in GitHub Desktop.
Save GregoryCollett/8be44edca1b51c834acd2344930736ef to your computer and use it in GitHub Desktop.
const compose = (...funcs) => (value) => funcs.reduce((v, fn) => fn(v), value);
const typeValueAction = (type) => (value) => ({ type, value });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment