Skip to content

Instantly share code, notes, and snippets.

@alexeyraspopov
Created November 19, 2014 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexeyraspopov/24b2e26afd97460f6767 to your computer and use it in GitHub Desktop.
Save alexeyraspopov/24b2e26afd97460f6767 to your computer and use it in GitHub Desktop.
// 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