Skip to content

Instantly share code, notes, and snippets.

@Semigradsky
Created September 18, 2015 09:51
Show Gist options
  • Save Semigradsky/a0f1910e80b1cd9bede5 to your computer and use it in GitHub Desktop.
Save Semigradsky/a0f1910e80b1cd9bede5 to your computer and use it in GitHub Desktop.
Curry
export default function () {
'use strict';
var args = Array.prototype.slice.call(arguments),
fn = args.shift();
return function () {
fn.apply(null, args.concat(Array.prototype.slice.call(arguments)));
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment