其實可以用reduce 取代concatAll let input = [[1], [2, 3], [4]]; let result = input.reduce((arr, current) => arr.concat(current)); console.log('result', ...
確定! 回上一頁