题解 | #二次封装函数#
二次封装函数
https://www.nowcoder.com/practice/694afeb930f74392bda01a815219d81b
function partialUsingArguments(fn) { let arg1 = [...arguments].slice(1) return function() { return fn.apply(this, arg1.concat([...arguments])) } }
二次封装函数
https://www.nowcoder.com/practice/694afeb930f74392bda01a815219d81b
function partialUsingArguments(fn) { let arg1 = [...arguments].slice(1) return function() { return fn.apply(this, arg1.concat([...arguments])) } }
相关推荐