Last active
August 3, 2018 08:12
-
-
Save e-mihaylin/a4a09817b2b9823ec4abcef77d441e56 to your computer and use it in GitHub Desktop.
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
| const numberFormat = n => String(n).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment