Created
March 6, 2014 18:07
-
-
Save weslley39/9395811 to your computer and use it in GitHub Desktop.
String_To_Currency
This file contains hidden or 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
value.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment