Hi.
It would be nice to provide the following format functions:
formatLandlinePhone(landlinePhone: string): string - Formats a landline phone, e.g.: 9999999999 → (99) 9999-9999;
formatMobilePhone(mobilePhone: string): string - Formats a mobile phone, e.g.: 99999999999 → (99) 99999-9999;
formatPhone(phone: string): string - Formats a landline or mobile phone, e.g.: 9999999999 → (99) 9999-9999 or 99999999999 → (99) 99999-9999.
cheers