param { number } value param { string } currency param { number } minimumFractionDigits return { string } export const formatCurrency = ( value , currency , minimumFractionDigits ) : string => { const formatter = new Intl . NumberFormat ( 'ru' , { style : 'currency' , currency , minimumFractionDigits , } ) ; return formatter . format ( value ) ; } ;