函数参数对象的考察

使用 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的资源站

全部评论

相关推荐

牛客38347925...:9,2学生暑期实习失利开始投小厂,给这群人整自信了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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