Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function kFormat(num) {
- return num > 999 ? (num/1000).toFixed(1) + ' K' : num
- }
- function mFormat(num) {
- return num > 99999 ? (num/1000000).toFixed(1) + ' M' : num
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement