Created
September 13, 2018 17:50
-
-
Save rafaelcavalcante/a9b25a828ed001db36a97c2af3e18dc0 to your computer and use it in GitHub Desktop.
elocc/helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const helpers = { | |
toCurrency: (value) => value.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' }), | |
parseIsoDate: (value) => Date.parse(value).toLocaleDateString('pt-BR', { day: 'numeric', month: 'long', year: 'numeric' }) | |
}; | |
export default helpers; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment