nfc(value, leftDigits, rightDigits)
Utility function for formatting numbers into strings and placing appropriate commas to mark units of 1000. There are two versions, one for formatting ints and one for formatting an array of ints. The value for the digits parameter should always be a positive integer.
Type: function
Parameter(s):
- value {Number}:
The Number to convert
- leftDigits {Number}:
- rightDigits {Number}:
Returns:
-
{String}:
The formatted string