Created
August 7, 2019 12:40
-
-
Save jonasraoni/f70a56c30504f109c4ef7d8107a5e081 to your computer and use it in GitHub Desktop.
Format currency
This file contains 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
'1234567890.123'.replace(/\d(?=(\d{3})+(?:$|\.))/g, '$& '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment