this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Shorten shortenNumber code

+4 -6
+4 -6
src/utils/shorten-number.jsx
··· 1 1 const { locale } = Intl.NumberFormat().resolvedOptions(); 2 - 3 - export default function shortenNumber(num) { 4 - return Intl.NumberFormat(locale, { 5 - notation: 'compact', 6 - }).format(num); 7 - } 2 + const shortenNumber = Intl.NumberFormat(locale, { 3 + notation: 'compact', 4 + }).format; 5 + export default shortenNumber;