Function hasScheme

  • Checks if the scheme part of the specified url matches at least one of the provided options.

    Parameters

    • url: string

      A string representing the URL.

    • Rest ...schemes: string[]

      Scheme value options (the function will check if at least one matches the URL scheme).

    Returns boolean

    True if the URL scheme matches at least one of the provided options, false otherwise.