Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function numberWithCommas(x) {
- return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement