Created
November 19, 2014 15:52
-
-
Save alexeyraspopov/24b2e26afd97460f6767 to your computer and use it in GitHub Desktop.
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
// returns a function which receive an array of values and apply they to `fn` as params | |
function spread(fn){ | |
return fn.apply.bind(fn, null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment