일단 기능구현을 목적으로 코드를 작성하다보니 조금 비효율적으로 작성한 코드가 몇가지 있었다.따라서 오늘은 함수를 리팩토링하였다. const checkCountryName = () => { if (!country) { alert("국가명을 입력해주세요!"); return true; }};const findCountryName = () => { const index = total.findIndex((el) => el.name === country); if (index === -1) { alert("등록되지 않은 국가입니다."); return true; }};const isCountryExist = () => { if (tota..