Function protocol

  • Gets the protocol part of an URI

    Parameters

    • uri: string

      The URI

    Returns string | null