Skip to content

Instantly share code, notes, and snippets.

@GregoryCollett
Last active March 14, 2017 10:30
Show Gist options
  • Select an option

  • Save GregoryCollett/8be44edca1b51c834acd2344930736ef to your computer and use it in GitHub Desktop.

Select an option

Save GregoryCollett/8be44edca1b51c834acd2344930736ef to your computer and use it in GitHub Desktop.

Revisions

  1. GregoryCollett revised this gist Mar 14, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion utils.js
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    const compose = (...funcs) => (value) => funcs.reduce((v, fn) => fn(v), value);
    const compose = (...funcs) => (value) => funcs.reduce((v, fn) => fn(v), value);

    const typeValueAction = (type) => (value) => ({ type, value });
  2. GregoryCollett created this gist Mar 14, 2017.
    1 change: 1 addition & 0 deletions utils.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    const compose = (...funcs) => (value) => funcs.reduce((v, fn) => fn(v), value);