make utils file
This commit is contained in:
parent
86b1198e5d
commit
940b833418
3 changed files with 4 additions and 4 deletions
3
src/public/javascript/utils.js
Normal file
3
src/public/javascript/utils.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function formatNumberWithSpaces(num) {
|
||||
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue