题解 | #二次封装函数#
二次封装函数
http://www.nowcoder.com/practice/694afeb930f74392bda01a815219d81b
function partialUsingArguments(fn) {
const args = Array.prototype.slice.call(arguments, 1)
return function (...restArgs) {
return fn(...args, ...restArgs)
}
}
查看1道真题和解析