Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- toFixed: function(num) {
- return num.toFixed(0).replace(/./g, function(c, i, a) {
- return i > 0 && c !== "." && (a.length - i) % 3 === 0 ? "," + c : c;
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement