mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 11:34: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, ',');
|
|
}
|