Skip to content

Instantly share code, notes, and snippets.

@newmanbrad
Created December 9, 2016 16:35
Show Gist options
  • Save newmanbrad/52133836721505bbf8fb74f067aa5da5 to your computer and use it in GitHub Desktop.
Save newmanbrad/52133836721505bbf8fb74f067aa5da5 to your computer and use it in GitHub Desktop.
Composing Functions
var compose = function(f, g) {
return function(x) {
return f(g(x));
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment