Function formatPhoneNumber

  • Extract numbers from a string & create a formated phone number: +1 (123) 456-7890

    Parameters

    • number: string

      String that will be parsed for numbers

    Returns string

    Formated phone number