formatNational
function formatNational(national, groups): string;Group national digits for display.
Groups are applied as far as they go; anything past the last known group is emitted in threes rather than run together, so an over-long number still reads as digits instead of a wall.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
national | string |
groups | number[] |
Returns
Section titled “Returns”string