reduce flatten


let a=[[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4]].reduce((a,b)=>a.concat(b))
console.log(a)//a.length=15 [0,1,2,3,4,0,1,2...]