Created
September 24, 2021 05:42
-
-
Save JoonHoSon/ba50dcc23a05aec3abe47873cc754cc9 to your computer and use it in GitHub Desktop.
Javascript currency format
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
target.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment