DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
format number with commas js
foramtNumber = (num,div=",")=>{ return num.toString().replace(/B(?=(d{3})+(?!d))/g, div); }
Source by sebhastian.com #
PREVIOUS
NEXT
Tagged:
#format
#number
#commas
#js
ADD COMMENT
Topic
COMMENT
Name
8+7 =
Submit