Opinions are like assholes, every one has got one.
This one is mine.
Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.
/** | |
* call wrapper function is equal to use call/apply to invoke function | |
* see follow usage | |
* | |
* @param {Function} f - need to wrapper function | |
*/ | |
var uncurryThis = function(f) { | |
var call = Function.call; | |
return function() { | |
return call.apply(f, arguments); |