标签:
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
201602021344_《Javascript柯里化uncurrying()(将内置方法独立成为一个通用方法)》
标签:
原文地址:http://www.cnblogs.com/beesky520/p/5177341.html