Skip to content

Instantly share code, notes, and snippets.

@dualyticalchemy
Created February 7, 2021 18:08
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 dualyticalchemy/49f4f9d9803d755b71b7a165e87fbd64 to your computer and use it in GitHub Desktop.
Save dualyticalchemy/49f4f9d9803d755b71b7a165e87fbd64 to your computer and use it in GitHub Desktop.
const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args)));
export {
compose
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment