Last active
August 29, 2015 14:04
-
-
Save owskio/5d7978a0e09e59c3b319 to your computer and use it in GitHub Desktop.
Useful
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
// ... | |
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