Created
November 16, 2016 13:28
-
-
Save airyboy/0fd8209c5b7d298a20052ba6c2dd473d to your computer and use it in GitHub Desktop.
Currency formatting
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
let sum = 123456.78; | |
sum.toLocaleString('ru-RU', {style: 'currency', currency: 'RUR'}); | |
//"123 456,78 RUR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment