Skip to content

Instantly share code, notes, and snippets.

@frivolta
Created October 11, 2021 08:16
Show Gist options
  • Save frivolta/4fe282287126f3e0bf19c845d26139d6 to your computer and use it in GitHub Desktop.
Save frivolta/4fe282287126f3e0bf19c845d26139d6 to your computer and use it in GitHub Desktop.
const pipe =
(...fns) =>
(x) =>
fns.reduce((res, fn) => fn(res), x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment