Created
April 23, 2020 12:28
-
-
Save nikitos-one/34ca3cbef83613a94994bdae32598801 to your computer and use it in GitHub Desktop.
Correct formatting of currency values (Правильное форматирование денежных значений)
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
price.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$& '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment