Belin.io Core
    Preparing search index...

    Represents a phone number.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    pattern: RegExp = ...

    The regular expression used to validate a phone number.

    Accessors

    • get isEmpty(): boolean

      Value indicating whether this phone number is empty.

      Returns boolean

    • get isValid(): boolean

      Value indicating whether this phone number is valid.

      Returns boolean

    Methods

    • Formats this phone number according to the locale.

      Returns string

      The formatted phone number.

    • Returns a JSON representation of this object.

      Returns string

      The JSON representation of this object.

    • Returns a string representation of this object.

      Returns string

      The string representation of this object.