Skip to content

Instantly share code, notes, and snippets.

@well1791
Created June 30, 2017 18:56
Show Gist options
  • Save well1791/d55e88b844a6b8d280283089c2ce7df2 to your computer and use it in GitHub Desktop.
Save well1791/d55e88b844a6b8d280283089c2ce7df2 to your computer and use it in GitHub Desktop.
Curry
const curryN = (n, f) => (...args) => args.length < n
? curryN(n, f).bind(null, ...args)
: f(...args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment