201602021344_《Javascript柯里化uncurrying()(将内置方法独立成为一个通用方法)》
Function.prototype.uncurrying = function() { var that = this; return function() { return Function.prototype.call.apply(that, arguments); } }; function add(a,b){ return a + b; }; var myAdd = add.uncurrying(); console.log(add(5,6));// 11
前端-语言