Add: NumberUtil - numberWithCommas
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class NumberUtil {
|
||||
|
||||
static numberWithCommas(x) {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user