JavaScript 意義不明 發表於 2018-01-04 | 更新於 2019-01-09 | 分類於 Javascript 覺得有趣 123456var ary = ['a', 'b', 'c'];// ["a", "b", "c"]var ary2 = ary.reduce((result, element) => result.concat(Array(3).fill(element)), []);//["a", "a", "a", "b", "b", "b", "c", "c", "c"]