函数参数对象的考察

使用 arguments

http://www.nowcoder.com/questionTerminal/df84fa320cbe49d3b4a17516974b1136

function useArguments() {
    let args = Array.prototype.slice.call(arguments, 0)
    return args.reduce((a, b) => a + b)
}

Tim的资源站

全部评论

相关推荐

07-07 12:47
门头沟学院 Java
码农索隆:竟然还真有卡体检报告的
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务