Rxova
Skip to content

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.

ParameterType
nationalstring
groupsnumber[]

string