const phoneNumber = '010-1234-7890'; const parsedPhoneNumber = ( ([first, ...phoneNumber]) => `+82${phoneNumber.join('')}` )(phoneNumber); console.log(parsedPhoneNumber); // +8210-1234-7890