Skip to content

Instantly share code, notes, and snippets.

@max-winderbaum
Created October 20, 2016 21:44
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 max-winderbaum/dc725ca22a0c48815243105bc10e1c2d to your computer and use it in GitHub Desktop.
Save max-winderbaum/dc725ca22a0c48815243105bc10e1c2d to your computer and use it in GitHub Desktop.
ES6 Pipeline Simple Middleware
const pipeline = (...funcs) =>
value => funcs.reduce((a, b) => b(a), value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment