es6 concat trick October 27, 2018·By Zevan let a = [1], b = [2], c = [3], d = [...a, ...b, ...c]; console.log(d); // outputs: [1, 2, 3]