Skip to content

Instantly share code, notes, and snippets.

@afr-dt
Created April 23, 2018 22:15
Show Gist options
  • Save afr-dt/0db3b19aca25337b4c9057a37c50d41e to your computer and use it in GitHub Desktop.
Save afr-dt/0db3b19aca25337b4c9057a37c50d41e to your computer and use it in GitHub Desktop.
Remove commas with js from strings
str = '1,737,761.64'
str.replace(/,\s?/g, "")
OR
str.split(",").join("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment