Skip to main content

parsePhoneNumberInput()

function parsePhoneNumberInput(input, country): PhoneResult

Given an input containing a phone number, parses it into a structured object.

Parameters​

ParameterTypeDefault value
inputstringundefined
countrystringUSPhoneData.alpha3

Returns​

PhoneResult