mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-07 08:12:19 +02:00
8 lines
137 B
TypeScript
8 lines
137 B
TypeScript
export default (count) => {
|
|
if (count < 1000) {
|
|
return count.toString();
|
|
}
|
|
|
|
return (count / 1000).toFixed(2).slice(0, -1) + "k";
|
|
};
|