mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
4 lines
102 B
JavaScript
4 lines
102 B
JavaScript
|
export default function(number) {
|
||
|
return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||
|
}
|