Фореш не возвращается
const arr = ['a','b','c'];
let res = [];
arr.forEach(el => res = [...res, el] );
console.log("res", res);
shahul
const arr = ['a','b','c'];
let res = [];
arr.forEach(el => res = [...res, el] );
console.log("res", res);