Created
September 24, 2014 20:14
-
-
Save mkoryak/bf32a6cb61c111b684ca to your computer and use it in GitHub Desktop.
currency format trick
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
"1234567890.34".replace(/\B(?=(\d{3})+(?!\d))/g, ",") | |
"1,234,567,890.34" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment