题解 | #二次封装函数#
二次封装函数
http://www.nowcoder.com/practice/694afeb930f74392bda01a815219d81b
function partialUsingArguments(fn, ...arg) {
return function result(...args) {
return fn.call(null, ...arg, ...args)
}
}
二次封装函数
http://www.nowcoder.com/practice/694afeb930f74392bda01a815219d81b
function partialUsingArguments(fn, ...arg) {
return function result(...args) {
return fn.call(null, ...arg, ...args)
}
}
相关推荐