const arr = ['가', '라', '다', '라', '마', '라'] function me(two){ for (let i=0; i<two.length; i++){ if(two[i]==='라'){ two.splice(i,1); } }return two; } console.log(me(arr))
const arr = ['가', '라', '다', '라', '마', '라']
function me(two){ for (let i=0; i<two.length; i++){ if(two[i]==='라'){ two.splice(i,1); } }return two; }
console.log(me(arr))