Created
April 23, 2018 22:15
-
-
Save afr-dt/0db3b19aca25337b4c9057a37c50d41e to your computer and use it in GitHub Desktop.
Remove commas with js from strings
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
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