mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-08-16 21:14:31 +03:30
Initial commit (secrets removed)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
// round to the first decimal if the number is higher than 1000
|
||||
export const getDisplayableNumber = (number: number): string =>
|
||||
number >= 1000 ? `${Math.round(number / 100) / 10}k` : `${number}`
|
||||
Reference in New Issue
Block a user