osu! code clean up

This commit is contained in:
2023-04-23 13:35:13 +07:00
parent 35c9a2fc42
commit 503278de44
5 changed files with 509 additions and 497 deletions
+9
View File
@@ -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;
}
}
}