题解 | #二次封装函数#
二次封装函数
http://www.nowcoder.com/practice/694afeb930f74392bda01a815219d81b
function partialUsingArguments(fn) {
let arr = [...arguments]
let result = function (){
let arr2 = [...arguments]
let arr3 = arr.slice(1).concat(arr2)
return fn.apply(this,arr3)
}
return result
}