function flatten(arr){ // toString() + split() 实现 // return arr.toString().split(',').map(item => Number(item)); // reduce 实现 // return arr.re...