I think it's a good idea to have the ability to format phones (landline and mobile)
as we already have the validators (isValidMobilePhone
and isValidLandlinePhone
),
we could also have the formaters (formatMobilePhone
and formatLandlinePhone
)
or
just have formatPhone
that check if it's mobile or landline and apply the correct mask