摘要: reduce为数组中每一个元素执行回调函数,不包括被删除或未被赋值的 https://www.jianshu.com/p/e375ba1cfc47 阅读全文
posted @ 2020-02-11 15:00 灏月天染 阅读(938) 评论(0) 推荐(0)
摘要: 将多个参数的函数,转换成单参数函数链 以add()()()举例 function add(){ 使用数组保存参数 let _args = Array.prototype.slice.call(arguments); let _adder = function(){ _args.push(...arg 阅读全文
posted @ 2020-02-11 13:42 灏月天染 阅读(224) 评论(0) 推荐(0)