const array = [
{ id : 0, text : 'hello', tag : 'a' },
{ id : 1, text : 'world', tag : 'b' },
{ id : 2, text : 'bye', tag : 'c' }
];
//객체로 이루어진 배열 예제
위의 배열을 데이터 수정 없이 id 1인 객체의 text값을 korea로 바꿀 예정
const modifiedArray = array.map( item => item.id === 1 ?