const _flatten = arr => { var s=[] if(arr.length==2){ s.push(arr[0]) _flatten(arr[1]) }else{ s.push(arr[0]) } ...