Skip to content

Instantly share code, notes, and snippets.

@thurt
thurt / uncurrying.js
Created January 11, 2016 17:22
uncurrying() in JavaScript.
Function.prototype.uncurrying = function() {
var _this = this;
return function() {
return Function.prototype.call.apply(_this, arguments);
};
};
/*var push = Array.prototype.push.uncurrying();
var a = [];
push(a, 1, 2, 'zensh');