Skip to content

Instantly share code, notes, and snippets.

@bttmly
Last active August 29, 2015 14:27
Show Gist options
  • Save bttmly/cddef8827a59c489fce4 to your computer and use it in GitHub Desktop.
Save bttmly/cddef8827a59c489fce4 to your computer and use it in GitHub Desktop.
Curry is a one-liner in idiomatic es6
let curry = (fn, ...args) => args.length >= fn.length ? fn(...args) : (...more) => curry(fn, ...args, ...more)
// just to make the gist longer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment