a = [1,2,3,4,5,6,7,8]
//filter
a.filter((val)=>{
return val>5
})
//output [6, 7, 8]
//map
a.map((val)=>{
return val+1
})
//output [2, 3, 4, 5, 6, 7, 8, 9]
//includes
a.includes(3)
//output true
//reduce
a.reduce((a,b) =>a+b)
//output 36
10-17
387
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)