Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save weslley39/9395811 to your computer and use it in GitHub Desktop.
Save weslley39/9395811 to your computer and use it in GitHub Desktop.
String_To_Currency
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