Skip to content

Instantly share code, notes, and snippets.

@pid
Forked from xat/gist:a9fae4828b6defd013ea
Last active August 29, 2015 14:08
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 pid/ddf696ad614246e3e165 to your computer and use it in GitHub Desktop.
Save pid/ddf696ad614246e3e165 to your computer and use it in GitHub Desktop.
var last = function(fn, l) {
return function() {
var args = Array.prototype.slice.call(arguments);
args.push(l);
return l = fn.apply(null, args);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment