mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
5 lines
139 B
JavaScript
5 lines
139 B
JavaScript
export default function Comma({ children }) {
|
|
return children
|
|
? children.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')
|
|
: ''
|
|
}
|