import addPeriods from "../helpers/addPeriods" ; example param value const formatToBRL = ( value ) : string => { const number = Number ( value ) . toFixed ( 2 ) . replace ( '.' , ',' ) ; return 'R$ ' + addPeriods ( number ) ; } ; export default formatToBRL ;