Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. function curry(func) {
  2. var slice = Array.prototype.slice,
  3. args = slice.call(arguments, 1);
  4. return function() {
  5. return func.apply(null, args.concat(slice.call(arguments, 0)));
  6. };
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement