enum CurrencySymbol { EUR = '€' , USD = '$' } const moneyService = { getCurrencySymbol ( currency ) { return currency ? CurrencySymbol [ currency . toUpperCase ( ) ] : CurrencySymbol . EUR ; } , } ; export default moneyService ;