commarize
Formats a given number by inserting commas every three digits
Returns:
{string}
- The number formatted with commas.
Parameters:
{number}
- The number to be formatted.
Examples
commarize(55289640); //'55,289,640'
commarize(1540); //1,540
Last updated