javascript 에서 여러 배열을 병합 const itemArray = [ { item: [ '1', '2' ], }, { item: [ '3' ], }, { item: [ '4' ], } ]; // foreach 사용 let itemCollection = []; itemArray.forEach((ele) => { itemCollection = [...itemCollection, ...ele.item]; }); // map 사용 let itemCollection = []; itemArray.map((ele) => { itemCollection = [...itemCollection, ...ele.item]; }); console.log(itemCollection); 결과 ['1', '2', '3', '..