make utils file

This commit is contained in:
counterweight 2025-02-24 11:24:17 +01:00
parent 86b1198e5d
commit 940b833418
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,3 @@
function formatNumberWithSpaces(num) {
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
}