The formatNumber utility localizes a number into a string with the appropriate punctuation based on the provided locale otherwise will default to the users locale.
formatNumber
formatNumber(1234);// 1,234 Copy
formatNumber(1234);// 1,234
The
formatNumberutility localizes a number into a string with the appropriate punctuation based on the provided locale otherwise will default to the users locale.