mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +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, ',');
|
|
}
|