const arr = ['a','b','c']; let res = []; arr.forEach(el => res = [...res, el] ); console.log("res", res);