mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Merge branch 'main' into VRChat
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export default class StringUtils {
|
||||
public static numberWithCommas(x: Number) {
|
||||
try {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
} catch (err) {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user