Created
September 18, 2015 09:51
-
-
Save Semigradsky/a0f1910e80b1cd9bede5 to your computer and use it in GitHub Desktop.
Curry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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