Skip to content

Instantly share code, notes, and snippets.

@owskio
Last active August 29, 2015 14:04
Show Gist options
  • Save owskio/5d7978a0e09e59c3b319 to your computer and use it in GitHub Desktop.
Save owskio/5d7978a0e09e59c3b319 to your computer and use it in GitHub Desktop.
Useful
// ...
clock = clockwise = function (fn) {
//WHY: Turns this:
// function (o,k,f) {};
// Into something which behaves like this:
// function (k,f,o) {};
return args(function (args) {
var last = args.pop();
args.unshift(last);
return apply(fn,this,args);
});
},
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment