@dialstack/sdk-dev / js/src / formatNationalUS
Function: formatNationalUS()
TypeScript
function formatNationalUS(e164): string;
Defined in: sdk/js/src/utils/phone-list.ts:323
Canonical display form for a US number, e.g. +17702126011 → (770) 212-6011.
Both surfaces normalize with this so canonical text is a fixed point: text that has been normalized re-parses to itself, which is what lets a saved draft reopen without reformatting or reordering anything.
Parameters
e164
string
Returns
string