1、找出数组里<100的数值。filter过滤函数
2、将数组里<100的数值*2。map映射函数
3、将<100 再*2后的数值 累加汇总。reduce汇总


整合简写一个函数式

1、找出数组里<100的数值。filter过滤函数
2、将数组里<100的数值*2。map映射函数
3、将<100 再*2后的数值 累加汇总。reduce汇总
整合简写一个函数式
本文标题:js的高阶函数用法
本文链接:https://www.haomeiwen.com/subject/ddezmltx.html
网友评论